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

TypeError: Cannot read property '_statStorage' of undefined #971

Closed
0w0k opened this issue Oct 31, 2018 · 5 comments
Closed

TypeError: Cannot read property '_statStorage' of undefined #971

0w0k opened this issue Oct 31, 2018 · 5 comments

Comments

@0w0k
Copy link

0w0k commented Oct 31, 2018

Bug report

Version

"vuepress": "^1.0.0-alpha.18"

Steps to reproduce

npm run docs:build

What is expected?

Start correctly

What is actually happening?

(undefined) ./node_modules/_@[email protected]@@vuepress/core/lib/app/clientEntry.js
Module build failed (from ./node_modules/[email protected]@cache-loader/dist/cjs.js):
TypeError: Cannot read property '_statStorage' of undefined
    at stat (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@enhanced-resolve/lib/CachedInputFileSystem.js:231:8)
    at toDepDetails (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@cache-loader/dist/index.js:66:5)
    at arrayIterator (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:3780:9)
    at timesSync (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:2292:7)
    at Object.mapLimit (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:3775:5)
    at Array.<anonymous> (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@cache-loader/dist/index.js:89:18)
    at arrayEachFunc (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:2512:19)
    at Object.parallel (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:6867:9)
    at Object.loader (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@cache-loader/dist/index.js:88:9)
 @ multi ./node_modules/_@[email protected]@@vuepress/core/lib/app/clientEntry.js app[0]
(undefined) ./node_modules/_@[email protected]@@vuepress/core/lib/app/serverEntry.js
Module build failed (from ./node_modules/[email protected]@cache-loader/dist/cjs.js):
TypeError: Cannot read property '_statStorage' of undefined
    at stat (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@enhanced-resolve/lib/CachedInputFileSystem.js:231:8)
    at toDepDetails (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@cache-loader/dist/index.js:66:5)
    at arrayIterator (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:3780:9)
    at timesSync (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:2292:7)
    at Object.mapLimit (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:3775:5)
    at Array.<anonymous> (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@cache-loader/dist/index.js:89:18)
    at arrayEachFunc (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:2512:19)
    at Object.parallel (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:6867:9)
    at Object.loader (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@cache-loader/dist/index.js:88:9)
 @ multi ./node_modules/_@[email protected]@@vuepress/core/lib/app/serverEntry.js app[0]
Error: Failed to compile with errors.
    at webpack (/Users/uc/ucwork/ucdevelopers/node_modules/_@[email protected]@@vuepress/core/lib/build.js:99:18)
    at finalCallback (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/MultiCompiler.js:247:12)
    at runWithDependencies.err (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/MultiCompiler.js:270:6)
    at done (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@neo-async/async.js:2928:13)
    at runCompilers (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/MultiCompiler.js:174:48)
    at err (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/MultiCompiler.js:181:7)
    at compiler.run (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/MultiCompiler.js:263:7)
    at finalCallback (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/Compiler.js:210:39)
    at hooks.done.callAsync.err (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/Compiler.js:226:13)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@tapable/lib/HookCodeFactory.js:32:10), <anonymous>:33:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@tapable/lib/Hook.js:154:20)
    at onCompiled (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/Compiler.js:224:21)
    at hooks.afterCompile.callAsync.err (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/Compiler.js:552:14)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@tapable/lib/HookCodeFactory.js:32:10), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@tapable/lib/Hook.js:154:20)
    at compilation.seal.err (/Users/uc/ucwork/ucdevelopers/node_modules/[email protected]@webpack/lib/Compiler.js:549:30)

Other relevant information

  • Your OS: macOS
  • Node.js version: 8.11.2
  • Browser version: Chrome 69.0.3497.100
  • Is this a global or local install? local
  • Which package manager did you use for the install? tnpm
@0w0k
Copy link
Author

0w0k commented Oct 31, 2018

@vuepress/[email protected] › cache-loader@^1.2.2(1.2.4)

[email protected] is ERR!

@0w0k
Copy link
Author

0w0k commented Oct 31, 2018

in @vuepress/core/package.json

// bad
"cache-loader": "^1.2.2",
// good
"cache-loader": "1.2.2",

@ulivz
Copy link
Member

ulivz commented Nov 7, 2018

Using resolutions:

  "resolutions": {
    "cache-loader": "1.2.2",
  },

Or try again since cache-loader has fixed it. 🙂

@ulivz ulivz closed this as completed Nov 7, 2018
@0w0k
Copy link
Author

0w0k commented Nov 10, 2018

Resolutions can lock the version? >-<

@ynnelson
Copy link
Contributor

Can someone explain resolutions? and how that works and where it needs to be implemented?

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

No branches or pull requests

3 participants