Git Product home page Git Product logo

Comments (3)

jacobsmith avatar jacobsmith commented on May 13, 2024

So, I was just able to go into my local yarn cache, find the 3.3.0 version of hoist-non-react-statics, and run npm install - that triggered the build (and thus, the dist folder was created). I'm not sure if yarn just wasn't doing that on install?

YARN_CACHE_DIR=$(yarn cache dir)
cd "$YARN_CACHE_DIR/npm-hoist-non-react-statics-3.3.0/node_modules/hoist-non-react-statics" && npm i

then in my project,

rm -rf node_modules
yarn install

that pulled in the cached version of this package that I just ran the npm i command (and, therefore, the build). That leads me to believe that yarn wasn't running the install step of dependencies - I don't know enough about yarn's processes to know if that's consistent with how it normally operates or not.

from hoist-non-react-statics.

eps1lon avatar eps1lon commented on May 13, 2024

The github release tarballs only contain files in version control by default 3.2.0 didn't have the dist/ folder either.

$ npm view hoist-non-react-statics dist.tarball
https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.0.tgz

The linked tarball contains the dist/ folder.

Maybe you use a different registry or proxy to something that includes the source instead of the content published to npm.

from hoist-non-react-statics.

jacobsmith avatar jacobsmith commented on May 13, 2024

Hm, okay, thanks for the information. I feel like yarn/npm issues are difficult to debug :\

I'm going to close this as clearly the issue isn't with this package, but something with my setup must be off. Thanks for the info, @eps1lon!

from hoist-non-react-statics.

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.