Skip to content

dev --watch breaks on second run #121

Closed
@acrobat

Description

@acrobat

When I run the ./node_modules/.bin/encore dev --watch command it compiles the assets but after another change I get an exception. Using version 0.11.0 of webpack-encore

Output:

→ ./node_modules/.bin/encore dev --watch
Running webpack ...


Webpack is watching the files…

(node:15488) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
 DONE  Compiled successfully in 8405ms                                                                                                      6:08:37 PM

 I  50 files written to web/build
 WAIT  Compiling...                                                                                                                         6:08:47 PM

/path/to/project/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:145
			if(key.startsWith(what))
			      ^

TypeError: Cannot read property 'startsWith' of undefined
    at Storage.purge (/path/to/project/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:145:10)
    at Storage.purge (/path/to/project/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:150:9)
    at CachedInputFileSystem.purge (/path/to/project/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:259:20)
    at EventEmitter.watcher.once (/path/to/project/node_modules/webpack/lib/node/NodeWatchFileSystem.js:42:26)
    at EventEmitter.g (events.js:292:16)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)
    at EventEmitter._onTimeout (/path/to/project/node_modules/watchpack/lib/watchpack.js:142:7)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)

With webpack-encore 0.12.0 I get this error:

→ ./node_modules/.bin/encore dev --watch
Running webpack ...


Webpack is watching the files…

(node:16147) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
 ERROR  Failed to compile with 1 errors                                                                                                     6:16:13 PM

 error  

Entry module not found: Error: Can't resolve 'dev' in '/path/to/project'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions