react-static: [v6] - Routing - webpack alias doesnt seem to work when building the HTML
building the assets with webpack works fine, but when the build process tries to build the HTML pages i get the following error:
Error: Failed exporting HTML for URL 404 (src/pages/404.jsx): Could not load React-Static routes! Please double check your webpack configuration for consistency and restart/rebuil d your app. If this error persists, it is likely a webpack resolve.alias problem and you should file an issue at "https://github.com/nozzle/react-static/issues" ASAP.
- routes.js:2 module.exports
[app]/[react-static]/routes.js:2:9
- react-dom-server.node.production.min.js:28 d
[app]/[react-dom]/cjs/react-dom-server.node.production.min.js:28:492
- react-dom-server.node.production.min.js:30 ua
[app]/[react-dom]/cjs/react-dom-server.node.production.min.js:30:494
- react-dom-server.node.production.min.js:35 a.render
[app]/[react-dom]/cjs/react-dom-server.node.production.min.js:35:48
- react-dom-server.node.production.min.js:34 a.read
[app]/[react-dom]/cjs/react-dom-server.node.production.min.js:34:288
- react-dom-server.node.production.min.js:45 renderToString
[app]/[react-dom]/cjs/react-dom-server.node.production.min.js:45:6
- exportRoute.js:131 renderToStringAndExtract
[app]/[react-static]/src/static/exportRoute.js:131:21
i was unable to find the correct spot of this bug, the development server works fine…
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 19 (14 by maintainers)
Well shoot. I’ll double back and try with a clean install.
On Sat, Oct 6, 2018 at 2:29 AM Bartłomiej Maciejiczek < notifications@github.com> wrote: