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 in Entry module not found: Error: Cannot resolve 'file' or 'directory'

See original GitHub issue

When using 1.4.0 I get the error above, <1.4.0 works great. complaint is ./spec/index.js, I assume files is the culprit, not preprocessors:

files: [
    './spec/index.js'
],

or

preprocessors: {
    './spec/index.js': ['webpack']
},

Coincidentally, I see the new webpack-karma reporter is spec, however I can’t imagine that causing a clash.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:2
  • Comments:33 (4 by maintainers)

github_iconTop GitHub Comments

25reactions
moreirayokoyamacommented, Sep 1, 2015

@Keats post on Stackoverflow has a good solution.

set the extensions property on Webpack resolve configuration like this:

webpackConfig.resolve.extensions = [‘’, ‘.js’, ‘.coffee’] //ts, or anything else

That solved it for me.

20reactions
tiyecommented, Feb 9, 2015

I think Webpack’s error are really unfriendly… I tried for half an hour but failed to found out what’s wrong when it gives this error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR in Entry module not found: Error: Cannot resolve 'file ...
Hi everybody. I'm simply trying to use webpack but i can't solve this error. This is my webpack.config.js : module.exports = { entry:...
Read more >
72 - Stack Overflow
So if you get this error you need to really look at your entry path and make sure it is right based on...
Read more >
踩坑场景 - 掘金
ERROR in Entry module not found: Error: Can't resolve './src' in XXX的一个解决方案. 踩坑场景. 今天在学习Vue 的webpack 时(使用配置文件 ...
Read more >
webpack@4 default value for entry - appsloveworld
[Solved]-Entry module not found: Error: Can't resolve './src'-Reactjs ... Moreover, move your webpack config file to the root folder. entry: ...
Read more >
webpack/webpack - Gitter
ERROR in Entry module not found: Error: Can't resolve './src' in '/Users/me/company/assets' error Command failed with exit code 2. const buildConfigs = [{...
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