enhanced-resolve icon indicating copy to clipboard operation
enhanced-resolve copied to clipboard

Failed to rebuild with [email protected],throw exceptions that enhanced-resolve/lib/CachedInputFileSystem.js:145 if(key.startsWith(what))

Open qiudong opened this issue 9 years ago • 9 comments

/home/qd/project_1/fin-front/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:145
                        if(key.startsWith(what))
                              ^

TypeError: Cannot read property 'startsWith' of undefined
    at Storage.purge (/home/qd/project_1/fin-front/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:145:10)
    at Storage.purge (/home/qd/project_1/fin-front/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:150:9)
    at CachedInputFileSystem.purge (/home/qd/project_1/fin-front/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:259:20)
    at EventEmitter.<anonymous> (/home/qd/project_1/fin-front/node_modules/webpack/lib/node/NodeWatchFileSystem.js:42:26)
    at EventEmitter.g (events.js:260:16)
    at emitTwo (events.js:87:13)
    at EventEmitter.emit (events.js:172:7)
    at EventEmitter._onTimeout (/home/qd/project_1/fin-front/node_modules/watchpack/lib/watchpack.js:142:7)
    at Timer.listOnTimeout (timers.js:92:15)

I start up is ok but I edit the file failed,I use ubuntu 16.10

qiudong avatar Jul 24 '17 11:07 qiudong

Same with webpack 3.3.0 here.

diegoprd avatar Jul 24 '17 11:07 diegoprd

There is already #97

Fox32 avatar Jul 24 '17 11:07 Fox32

same with 3.3.0

lcxfs1991 avatar Jul 24 '17 11:07 lcxfs1991

Yep, same happening here

boonier avatar Jul 24 '17 11:07 boonier

Please fix this ASAP because webpack use enhanced-resolve: "^3.3.0". It will upgrade to 3.4.0 if we install webpack fresh. Wondering whether this is a bug or a breaking change?

lcxfs1991 avatar Jul 24 '17 11:07 lcxfs1991

You can manually delete enahnced-resolve in node_modules and install version 3.3.0. It will fix temporarily.

lcxfs1991 avatar Jul 24 '17 11:07 lcxfs1991

3.4.1 should fix the problem

sokra avatar Jul 24 '17 12:07 sokra

@sokra yeah just tested it out, this fixes the problem. Thank you, sir.

awesomenaz avatar Jul 24 '17 12:07 awesomenaz

Thank you @sokra ! Works! :)

the-architect avatar Jul 24 '17 12:07 the-architect