Closed davidkofman closed 3 years ago
we don't remove files and I can't reproducible, sorry your issue is not readable
we don't remove files and I can't reproducible, sorry your issue is not readable
@evilebottnawi I guess you mean we don't remove files on purpose, that's the nature of bugs - they happen without you wanting them. What exactly is not readable? Isn't deleting all the source files worth investigating a little? As for reproduce I'd start by removing the DirectoryWatcher and seeing what happens.
What exactly is not readable? Isn't deleting all the source files worth investigating a little?
We don't have code for removing files
As for reproduce I'd start by removing the DirectoryWatcher and seeing what happens.
You have problems with plugins
Don't ignore For Bugs; How can we reproduce the behavior?
You have problems with plugins
I installed webpack 4.44.2 which installed watchpack 1.7.4 as a dependency.
watchpack/lib/watcherManager.js has require("./DirectoryWatcher")
but does not include this module. So how come I have a problem?
Don't ignore
For Bugs; How can we reproduce the behavior?
added
webpack-dev-server can't wok without this file
I think you have two version of webpack, double check it
I think you have two version of webpack, double check it
I don't have a global installation of webpack
Why you remove DirectoryWatcher
?
Why you remove
DirectoryWatcher
?
I don't, that's the thing!! It happens when I run webpack serve
I don't understand the problem, please provide how I can reproducible it
Code
I am running 'webpack serve' as follows (part of my package.json):
Expected Behavior
webpack-dev-server runs with my app
Actual Behavior
webpack-dev-server fails when not finding the DirectoryWatcher module and wipes the whole subtree where it is ran:
f0189883f4bd:CEUserConsole kofmand$ npm start
Building with source maps 11% building 16/19 modules 3 active ...re/CEUserConsole/node_modules/webpack-dev-server/client/utils/getCurrentScriptSource.js(node:695) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56 parseQuery() will be replaced with getOptions() in the next major version of loader-utils. at Object.parseQuery (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/loader-utils/index.js:78:3) at Object.module.exports (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/html-loader/index.js:18:26) at LOADER_EXECUTION (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/loader-runner/lib/LoaderRunner.js:119:14) at runSyncOrAsync (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/loader-runner/lib/LoaderRunner.js:120:4) at iterateNormalLoaders (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/loader-runner/lib/LoaderRunner.js:232:2) at Array. (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
at Storage.finished (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
at provider (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9)
at /Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/graceful-fs/graceful-fs.js:123:16
at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
[webpack-cli] Uncaught exception: Error: Cannot find module './DirectoryWatcher'
[webpack-cli] Error: Cannot find module './DirectoryWatcher'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at WatcherManager.getDirectoryWatcher (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/watchpack/lib/watcherManager.js:14:25)
at WatcherManager.watchFile (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/watchpack/lib/watcherManager.js:28:14)
at Watchpack. (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/watchpack/lib/watchpack.js:38:49)
at Array.map ()
at Watchpack.watch (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/watchpack/lib/watchpack.js:37:28)
at NodeWatchFileSystem.watch (/Users/kofmand/dev/CloudEndure/CEUserConsole/node_modules/webpack/lib/node/NodeWatchFileSystem.js:70:16)
f0189883f4bd:CEUserConsole kofmand$ ls
f0189883f4bd:CEUserConsole kofmand$ git status
On branch david_update_packages
Your branch is ahead of 'origin/david_update_packages' by 57 commits.
(use "git push" to publish your local commits)
Changes not staged for commit: (use "git add/rm..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
etc.
For Bugs; How can we reproduce the behavior?
for me it happens when I run
webpack serve
with the specified versions.For Features; What is the motivation and/or use-case for the feature?