question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found on production build `0.4.0-beta.35`

See original GitHub issue

Description

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:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brilloutcommented, Jun 23, 2022

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 😃.

0reactions
jaybe78commented, Jun 23, 2022

NP ! Thanks for looking into this. You were right it was not related to vps itself but one of its dependencies.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found