Code Monkey home page Code Monkey logo

Comments (2)

ryan-williams avatar ryan-williams commented on June 19, 2024 1

That makes sense: my repro imports from @deck.gl/react directly, so pnpm requires it to explicitly declare that as a dependency in package.json. I didn't realize pnpm worked this way, thanks for the explanation / link!

from pnpm.

nachoaldamav avatar nachoaldamav commented on June 19, 2024

Maybe I didn't understand the issue, but as you are not installing @deck.gl/react directly this issue is expected because of the pnpm node_modules structure. You have 3 options:

  1. Use public-hoist-pattern to link some dependencies to the public node_modules, like this public-hoist-pattern[][email protected]*.
  2. Add @deck.gl/react to the dependencies/devDependencies object in the package.json.
  3. Use shamefully-hoist to force linking every dependency installed to the public node_modules.

More information: https://pnpm.io/blog/2020/05/27/flat-node-modules-is-not-the-only-way

from pnpm.

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.