Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debugging builds: error due to require/import mix
Mention that build may fail with ``` error Building static HTML for pages failed See our docs page on debugging HTML builds for help https://goo.gl/yL9lND 8 | else 9 | root["lib"] = factory(root["@reach/router"], root["core-js/modules/es6.array.sort"], root["fs"], root["lodash"], root["path"], root["react"], root["react-dom/server"], root["react-helmet"]); > 10 | })(this, function(__WEBPACK_EXTERNAL_MODULE__reach_router__, __WEBPACK_EXTERNAL_MODULE_core_js_modules_es6_array_sort__, __WEBPACK_EXTERNAL_MODULE_fs__, __WEBPACK_EXTERNAL_MODULE_lodash__, __WEBPACK_EXTERNAL_MODULE_path__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom_server__, __WEBPACK_EXTERNAL_MODULE_react_helmet__) { | ^ 11 | return WebpackError: Invariant Violation: Minified React error gatsbyjs#130; visit https://reactjs.org/docs/error-decoder.html?invari ant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and addi tional helpful warnings. ``` when we mix `import` and `require` in the same (page) file in Gatsby 2, which has upgraded to Webpack 4, which is stricter about this.
- Loading branch information