Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure on scoped package #9

Open
guykisel opened this issue Feb 10, 2017 · 3 comments · May be fixed by #10
Open

Failure on scoped package #9

guykisel opened this issue Feb 10, 2017 · 3 comments · May be fixed by #10

Comments

@guykisel
Copy link
Contributor

guykisel commented Feb 10, 2017

This might just be because the package.json is a level deeper than expected.

webpack: wait until bundle finished:
10 02 2017 14:45:50.822:ERROR [karma]: { Error: ENOENT: no such file or directory, open '/Users/*/*/node_modules/@myscope/package.json'
    at Error (native)
    at Object.fs.openSync (fs.js:634:18)
    at Object.fs.readFileSync (fs.js:502:33)
    at /Users/*/*/node_modules/webpack-node-modules-list/index.js:38:41
    at Array.forEach (native)
    at compilation.chunks.forEach.chunk (/Users/*/*/node_modules/webpack-node-modules-list/index.js:30:10)
    at Array.forEach (native)
    at Compiler.compiler.plugin (/Users/*/*/node_modules/webpack-node-modules-list/index.js:21:24)
    at Compiler.applyPluginsAsync (/Users/*/*/node_modules/tapable/lib/Tapable.js:71:13)
    at Compiler.emitAssets (/Users/*/*/node_modules/webpack/lib/Compiler.js:226:7)
    at Watching.<anonymous> (/Users/*/*/node_modules/webpack/lib/Compiler.js:54:18)
    at /Users/*/*/node_modules/webpack/lib/Compiler.js:403:12
    at Compiler.next (/Users/*/*/node_modules/tapable/lib/Tapable.js:67:11)
    at Compiler.<anonymous> (/Users/*/*/node_modules/webpack/lib/CachePlugin.js:40:4)
    at Compiler.applyPluginsAsync (/Users/*/*/node_modules/tapable/lib/Tapable.js:71:13)
    at Compiler.<anonymous> (/Users/*/*/node_modules/webpack/lib/Compiler.js:400:9)
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/*/*/node_modules/@myscope/package.json' }

I'll look into fixing this if I get a chance.

@yfr
Copy link
Contributor

yfr commented Feb 13, 2017

Thanks for reporting. Let me know if you need some help.

@guykisel guykisel linked a pull request Feb 15, 2017 that will close this issue
@httpete
Copy link

httpete commented Feb 28, 2018

Hi, I am hitting this too:

Unhandled rejection Error: ENOENT: no such file or directory, open 'c:\Users\mydir\bench\myproduct\node_modules@uirouter\package.json'

Because this directory doesn't have a package.json, any thoughts? Really need this module you have.

givanse added a commit to givanse/webpack-node-modules-list that referenced this issue Feb 15, 2019
givanse added a commit to givanse/webpack-node-modules-list that referenced this issue Feb 15, 2019
@givanse
Copy link

givanse commented Feb 15, 2019

fix: #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants