Comments (7)
@NicholasGWK thats what ive got too. pretty annoying...
from memory-fs.
any word on this?
from memory-fs.
Tried implementing @dapetcu21's solution and I'm still getting the same error:
throw new MemoryFileSystemError(errors.code.EINVAL, path);
^
Error: invalid argument
at pathToArray (node_modules\webpack-dev-middleware\node_modules\memory-fs\lib\MemoryFileSystem.js:44:10)
at MemoryFileSystem.mkdirpSync (node_modules\webpack-dev-middleware\node_modules\memory-fs\lib\MemoryFileSystem.js:139:13)
at MemoryFileSystem.(anonymous function) [as mkdirp] (node_modules\webpack-dev-middleware\node_modules\memory-fs\lib\MemoryFileSystem.js:279:34)
at Compiler.<anonymous> (node_modules\webpack\lib\Compiler.js:229:25)
at Compiler.applyPluginsAsync (node_modules\webpack\node_modules\tapable\lib\Tapable.js:60:69)
at Compiler.emitAssets (node_modules\webpack\lib\Compiler.js:226:7)
at Watching.<anonymous> (node_modules\webpack\lib\Compiler.js:54:18)
at node_modules\webpack\lib\Compiler.js:403:12
at Compiler.next (node_modules\webpack\node_modules\tapable\lib\Tapable.js:67:11)
at Compiler.<anonymous> (node_modules\awesome-typescript-loader\dist\instance.js:275:9)
from memory-fs.
@ engageft3 Try logging the path and see what it is. For me the problem was my output path in webpack.config.js wasn't absolute, and had a ./build rather than build. But, the regex still had to be changed.
from memory-fs.
Worked around it by putting '/' at the beginning of my path in output for webpack config, causes it to think it's *nix
from memory-fs.
@stephenmathieson Yeah that workaround works for me, I think it address the path correctly in the in memory system. Reminder for anyone who reads this to only do this in the dev config, otherwise if you're on Windows the production webpack build with start writing to C:/build or similar :).
from memory-fs.
output.path
must be an absolute value. This is also required by webpack.
from memory-fs.
Related Issues (20)
- Async methods in memory-fs don't work with `promisify` in native node module `util` HOT 2
- Add mounting of other memory-fs filesystems
- pathToArray changing drive letter case for Windows
- readFile does not seem to accept options object HOT 2
- Bump new version? HOT 1
- writeFileSync does not accept empty content
- Issue with spaces in file path (Windows) HOT 1
- Memory fs error on windows ==> throw new MemoryFileSystemError(errors.code.ENOENT, _path) HOT 4
- rmdirSync doesn't throw on non-empty directory
- rename is missing HOT 2
- Missing License file in NPM package
- Remove `fs.join` HOT 1
- DeprecationWarning in webpack v4 HOT 2
- No matching version found for memory-fs@^0.5.0 HOT 1
- DEPRECATED? memfs not compatible with this library. HOT 3
- How to flush memory data into disk
- Why don't you use memfs instead?
- deprecate npm package
- DO NOT USE THIS LIBRARY
- output fileName query
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memory-fs.