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.

Error: Cannot find module './assets'

See original GitHub issue

RSK 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:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
langpavelcommented, Apr 20, 2016

@FakhruddinAbdi Why you close this without any note? 😃

2reactions
frenzzycommented, Sep 19, 2016

@mdarby look at the previous error, looks like client-side code was not built successfully

Read more comments on GitHub >

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

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