Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blueprints-1.16.0: Error: Cannot find module '../../lib/utils/ipv6-utils' #1094

Closed
khris-zeroeyes opened this issue Oct 24, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@khris-zeroeyes
Copy link

Describe the bug

I followed the instructions in the README to setup a new project both on my workstation and in a fresh node container, each resulted in the same error.

Expected Behavior

CDK deploys stack

Current Behavior

root@2c8bcc199fe3:/my-blueprints# cdk deploy 
Error: Cannot find module '../../lib/utils/ipv6-utils'
Require stack:
- /my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/resource-providers/ipv6-iam.js
- /my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/resource-providers/index.js
- /my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/cluster-providers/import-cluster-provider.js
- /my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/cluster-providers/index.js
- /my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/addons/appmesh/index.js
- /my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/addons/index.js
- /my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/index.js
- /my-blueprints/bin/my-blueprints.ts
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/my-blueprints/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/my-blueprints/node_modules/@aws-quickstart/eks-blueprints/lib/resource-providers/ipv6-iam.ts:4:1)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Object.require.extensions.<computed> [as .js] (/my-blueprints/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (node:internal/modules/cjs/loader:1288:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/resource-providers/ipv6-iam.js',
    '/my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/resource-providers/index.js',
    '/my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/cluster-providers/import-cluster-provider.js',
    '/my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/cluster-providers/index.js',
    '/my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/addons/appmesh/index.js',
    '/my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/addons/index.js',
    '/my-blueprints/node_modules/@aws-quickstart/eks-blueprints/dist/index.js',
    '/my-blueprints/bin/my-blueprints.ts'
  ]
}
Subprocess exited with error 1

Reproduction Steps

https://github.com/aws-quickstart/cdk-eks-blueprints?tab=readme-ov-file#getting-started-1

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.162.1

EKS Blueprints Version

1.16.0

Node.js Version

v20.18.0

Environment details (OS name and version, etc.)

Debian 12

Other information

No response

@khris-zeroeyes khris-zeroeyes added the bug Something isn't working label Oct 24, 2024
@shapirov103
Copy link
Collaborator

Accepted, will release patch shortly. The internally used import path was invalid when consumed through the npm module, while internal tests worked

@shapirov103
Copy link
Collaborator

1.16.1 is published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants