-
Notifications
You must be signed in to change notification settings - Fork 104
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
Possible Typo in createOutputWriter.js #441
Comments
Actually, looking at the file history it looks like the dependency for |
Ran into the same thing. Can't use the plugin with webpack-middleware-dev like this. |
Here's my main version info: At some point, when I upgraded to the above mentioned "npm package", I got the same error.Until then, it had been running fine.That's weird. Personally, I think it's due to the recent "webpack" update that removed the outdated "mkdirp", see: Then, after I changed "mkdirp" to "mkdir" as you said, it triggered a new error. After troubleshooting, the final change to this worked: This issue was created a long time ago, but I'm posting the problem I encountered and the solution for your reference. |
…changes Fixing `TypeError: localFs.mkdirp is not a function`, caused by the migration from `memfs@3` to `memfs@4` in webpack/webpack-dev-middleware#1693, where `mkdirp` was removed. See: https://github.com/streamich/memfs/releases/tag/v4.2.0 Refs: ztoben#441
Describe the bug
On line 51 of
lib/output/createOutputWriter.js
the local variablelocalFs
is either filestream or the fs module from Node, but on line 88 the methodlocalFs.mkdirp
is called to output the json file. The resulting error during a build is below.Changing this to
localFs.mkdir
seems to fix the issue.To Reproduce
Steps to reproduce the behavior:
options.keepInMemory
totrue
Expected behavior
For the JSON file to be output correctly in memory.
Webpack Config
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: