Git Product home page Git Product logo

Comments (3)

agdimech avatar agdimech commented on May 18, 2024

This has been resolved in #315

from aws-pdk.

tmokmss avatar tmokmss commented on May 18, 2024

Hi @agdimech thank you for working on the issue! I'm afraid it is still not fixed though. I see the same npm error by the same reproduction step:

npm init -y
npm i aws-prototyping-sdk
npm ci
# expecting npm ci successes, but we get the below error:
# -> npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.

Reproducible with aws-prototyping-sdk: 0.14.16.

from aws-pdk.

tmokmss avatar tmokmss commented on May 18, 2024

Hi @agdimech I did a bit of research about this. The below is the command history when reproducing this issue:

$ npm install aws-prototyping-sdk

added 8 packages, and audited 119 packages in 20s

11 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

$ npm install

added 135 packages, and audited 254 packages in 9s

26 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

$ npm update

removed 135 packages, and audited 119 packages in 452ms

11 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

so 135 packages are missing right after running npm install aws-prototyping-sdk, added after npm install, and removed again after npm update.

I found all of the 135 packages are from @nrwl/devkit, and it is set as a bundledDependencies

less node_moduels/aws-prototyping-sdk/package.json

# we can find this.
  "bundledDependencies": [
    "@nrwl/devkit"
  ],

This issue should be fixed by removing this bundled dependency. The question is then why do we need this package as a bundled dependency?

It seems it is coming from this code:
https://github.com/aws/aws-prototyping-sdk/blob/f869d5de99b1ae853f3cdb5c8ab55d6ab033f1d9/private/projects/nx-monorepo-project.ts#L22

Reading through this stackoverflow comment, I don't see much reason to do that.

from aws-pdk.

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.