Error: Cannot find module './assets'
See original GitHub issueRSK don’t create assest.js in the build directory and therefore it’s giving this error:
Error: Cannot find module './assets'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/Users/fakhruddinabdi/WebstormProjects/zeyton/build/webpack:/external "./assets":1:1)
at __webpack_require__ (/Users/fakhruddinabdi/WebstormProjects/zeyton/build/webpack:/webpack/bootstrap e4b21e6664c8c9d0b071:19:1)
at Object.<anonymous> (/Users/fakhruddinabdi/WebstormProjects/zeyton/build/webpack:/webpack/bootstrap e4b21e6664c8c9d0b071:39:1)
at __webpack_require__ (/Users/fakhruddinabdi/WebstormProjects/zeyton/build/webpack:/webpack/bootstrap e4b21e6664c8c9d0b071:19:1)
at /Users/fakhruddinabdi/WebstormProjects/zeyton/build/webpack:/webpack/bootstrap e4b21e6664c8c9d0b071:39:1
at Object.<anonymous> (/Users/fakhruddinabdi/WebstormProjects/zeyton/build/webpack:/webpack/bootstrap e4b21e6664c8c9d0b071:39:1)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:140:18)
I was working on a project for about 5 month without problem But today, due to some change, i have faced this error
some recently changes: 1- installing jwt-decode package 2- refactoring some component name 3- some change on the components
it didn’t resolve even by checking out the previous git working commit
NODE : 5.6 NPM 3.6
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Importing images in TypeScript React - "Cannot find module"
I tried to import the image in App.tsx like this. VS Code underlined '../assets/image.jpg' and said Cannot find module '../ ...
Read more >Cannot find module error when importing an static file using ...
But when I use typescript I get this error on the vscode console. Cannot find module '@client/assets/img/character.png'.
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
When you get the “cannot find module” error, or “module not found”, it means you've not installed the package you're trying to use....
Read more >cannot find module or its corresponding type declarations
The "Cannot find module or its corresponding type declarations" error occurs when TypeScript cannot locate a third-party or local module in our project....
Read more >Search - appsloveworld
Coding example for the question Cannot find module './assets/photo.jpg' error in React-Reactjs.
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
@FakhruddinAbdi Why you close this without any note? 😃
@mdarby look at the previous error, looks like client-side code was not built successfully