Module not found on production build `0.4.0-beta.35`
See original GitHub issueDescription
After I’ve upgraded to version 0.4.0-beta.35
, there seems to be an issue with the npm run prod
command.
It compiles correctly but when I try to reach the app I get an error.
npm run dev
command seems to be working and the bug seems to have been introduce since 0.4.0-beta.35
.
Please find that repo to reproduce the issue:
https://github.com/jaybe78/vps-webpack5-redux-streaming-test
Error Stack
> server:prod
> cross-env NODE_ENV=production node ./dist/main
[vite-plugin-ssr@0.3.64][Warning] `createPageRenderer()` is outdated, use `renderPage()` instead. See https://vite-plugin-ssr.com/renderPage
[vite-plugin-ssr@0.3.64][Warning] The options `root` and `isProduction` you passed to `createPageRenderer()` have no effect anymore: they are now automatically determined.
Server running at http://localhost:3000
Error: Cannot find module '7105'
at webpackEmptyContext (file:///Users/jb/Documents/vps-webpack5-redux-streaming-test/dist/main.js:83252:10)
at getImporterFilePath (file:///Users/jb/Documents/vps-webpack5-redux-streaming-test/dist/main.js:83149:87)
at loadDistEntries (file:///Users/jb/Documents/vps-webpack5-redux-streaming-test/dist/main.js:83102:24)
Issue Analytics
- State:
- Created a year ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Module Not Found in Build Production w/ Netlify #5337 - GitHub
After I updated Svelte to the latest update, I encountered an error that I can't seem to overcome when deploying to Netlify, from...
Read more >node.js - Material-UI Rendering Bugs in production / build
But when built and served through Nginx or npm-module serve the rendering is not working correctly... (I saw similar issues on the material-ui ......
Read more >Error when importing a custom font - Netlify Support Forums
But I was getting a 'module not found' error whenever I tried to build on netlify (didn't get this error locally and build...
Read more >History - setuptools 65.6.3.post20221220 documentation
Misc#. #3551: Avoided circular imports in meta path finder for editable installs when a missing module has the same name as its parent....
Read more >Package List — Spack 0.20.0.dev0 documentation
Versions: develop, 0.8.0, 0.7.0, 0.6.0, 0.5.0, 0.4.0; Build Dependencies: cuda, ... Indeed, no single release has been published by Rice university for the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed https://github.com/brillout/vite-plugin-dist-importer/commit/fe2c87189b438ce7af6c3b937b2ee9e63dfd6945 and released as https://github.com/brillout/vite-plugin-dist-importer/commit/2d923515e67baf3b197b55fbb3453e08ffcc043c.
Bump your lock file and you should be good.
Sorry for the late handling of this. I usually fix bugs under 24h 😃. To my defense it was also webpack’s fault 😃.
NP ! Thanks for looking into this. You were right it was not related to vps itself but one of its dependencies.