Giter VIP home page Giter VIP logo

Comments (10)

michael-ciniawsky avatar michael-ciniawsky commented on May 31, 2024 1

Fixed by #45. Released in v1.2.4 🎉

from cache-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

@llaszkie can you create minimum reproducible test repo? Looks not all fs have stat method

from cache-loader.

sodatea avatar sodatea commented on May 31, 2024

@evilebottnawi See vuejs/vue-cli#2847
The missing of this.fs is caused by thread-loader if i'm not mistaken.

from cache-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

@sodatea strange, feel free to investigate and send a PR with fix, really very strange

from cache-loader.

itmayziii avatar itmayziii commented on May 31, 2024

Experienced this issue with the @Vue/cli when creating a new project and trying to build

from cache-loader.

harishdurga avatar harishdurga commented on May 31, 2024

yes i also have the same issue while trying to run build for the project

from cache-loader.

Mitscherlich avatar Mitscherlich commented on May 31, 2024

I think the this.fs.stat here should be fs.stat:

this.fs.stat(dep, (err, stats) => {
if (err) {
mapCallback(err);
return;
}

I came across this problem when I build my app on travis CI. Since I didn't push yarn lock file, which reference to cache-loader 1.2.2. And that's why my local test passed.

from cache-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

Please don't spam i also have the same issue, just use 👍 or better send a PR with fix

from cache-loader.

alexander-akait avatar alexander-akait commented on May 31, 2024

Somebody can create minimum reproducible test repo?

from cache-loader.

gusvargas avatar gusvargas commented on May 31, 2024

This will be resolved by by #45

But I wonder if this is actually a bug in the thread-loader, either in the code or in the documentation.

this.fs is clearly documented in the loader API. It seems like an odd precedent to set that every webpack loader needs to be thoroughly tested in the context of all other webpack loaders, especially when some webpack loaders essentially erase part of the API.

I think that the thread-loader should either make sure that this.fsis exposed for loaders running in a worker or document in the usage that loaders being run in a worker cannot depend on this.fs.

from cache-loader.

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.