GithubHelp home page GithubHelp logo

Comments (4)

ilyaagarkov avatar ilyaagarkov commented on May 1, 2024

I believe I have the same problem. @mazeeblanke have you found a solution?

from memory-fs.

Viijay-Kr avatar Viijay-Kr commented on May 1, 2024

@mazeeblanke Apparently its not an issue with the platform.__dirname points to your local working directory. In ur code ur trying to read it and it throws the error because its not yet created.

try

var MemoryFileSystem = require("memory-fs")
var fs = new MemoryFileSystem()
fs.mkdirpSync(__dirname)
console.log(__dirname)

console.log(fs.data)

The above piece will not throw an error as it creates a directory before its read

from memory-fs.

mazeeblanke avatar mazeeblanke commented on May 1, 2024

@VijayKrish93 okay thanks i will try it

from memory-fs.

CyanChoi avatar CyanChoi commented on May 1, 2024

still not work ... should I update the webpack? my webpack is ^2.7.0

/kuyu/html/activeCMS/dist/admin.html
[0]
[0] /kuyu/html/activeCMS/node_modules/memory-fs/lib/MemoryFileSystem.js:107
[0] throw new MemoryFileSystemError(errors.code.ENOENT, _path);
[0] ^
[0] Error: no such file or directory
[0] at MemoryFileSystem.readFileSync (/kuyu/html/activeCMS/node_modules/memory-fs/lib/MemoryFileSystem.js:107:10)
[0] at Compiler.clientCompiler.plugin (/kuyu/html/activeCMS/build/setup-dev-server.js:33:26)
[0] at Compiler.applyPlugins (/kuyu/html/activeCMS/node_modules/tapable/lib/Tapable.js:61:14)
[0] at Watching._done (/kuyu/html/activeCMS/node_modules/webpack/lib/Compiler.js:98:16)
[0] at onCompiled (/kuyu/html/activeCMS/node_modules/webpack/lib/Compiler.js:49:17)

from memory-fs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.