GithubHelp home page GithubHelp logo

Comments (10)

SimonLdj avatar SimonLdj commented on August 15, 2024 8

got similar issue:

Error: Cannot find module 'aws-cdk/node_modules/cdk-assets/lib/private/handlers/files'

with "aws-cdk": "1.111.0" & "aws-cdk-local": "1.65.5"
but with "aws-cdk-local": "1.65.4" all looks good

from aws-cdk-local.

recklessYello avatar recklessYello commented on August 15, 2024 1

Please note I had a similar issue with aws-cdk-local version 1.65.5
My error was
cdklocal --version
Error Cannot find module diff

Taking @SimonLdj advice solved the issue.

from aws-cdk-local.

whummer avatar whummer commented on August 15, 2024

Thanks for reporting @rgoodwin . Just to confirm - did you install the aws-cdk npm package as well? (See README here: https://github.com/localstack/aws-cdk-local#quick-installation).

Can you please share the output of the following commands:

$ node -e 'console.log(require("aws-cdk"))'
$ cdk --version
$ cdklocal --version

Thanks!

from aws-cdk-local.

nbraid avatar nbraid commented on August 15, 2024

Not OP, but I ran into this error as well. Seemed to be a versioning issue.

npm install -g [email protected]
npm install -g [email protected] 

seems to work, but earlier (<1.65) or later (>1.90) versions of CDK do not.

from aws-cdk-local.

rubfergor avatar rubfergor commented on August 15, 2024

@SimonLdj this seems to be related to the latest change:
const { FileAssetHandler } = require('aws-cdk/node_modules/cdk-assets/lib/private/handlers/files');

As a result, anything other than NPM or Yarn (and in yarn, it doesn't work with monorepos will probably fail because node_modules folder doesn't have to exist as folder itself because it can be a symlink (which probably will throw an error).

from aws-cdk-local.

ubaidbaig-10p avatar ubaidbaig-10p commented on August 15, 2024

@recklessYello I'm also facing the same issue i.e. Error Cannot find module diff, I have created a pull request to fix the issue, see below:

#49

from aws-cdk-local.

whummer avatar whummer commented on August 15, 2024

Thanks @SimonLdj @nbraid @rubfergor @recklessYello @ubaidbaig-10p @rgoodwin . We have pushed a small fix which should (hopefully) resolve the import issues. Can you please give it another try with the latest version [email protected]. Hope that helps - please report here or create a new issue with more details if the problem persists. Thanks!

from aws-cdk-local.

rubfergor avatar rubfergor commented on August 15, 2024

Seems to be working now! Thanks!

from aws-cdk-local.

ethanalef avatar ethanalef commented on August 15, 2024

It doesn't work for me too..

Screenshot 2022-02-25 at 12 56 04 PM

from aws-cdk-local.

Li-ReDBox avatar Li-ReDBox commented on August 15, 2024

Same experience here. Currently:

from aws-cdk-local.

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.