Frank
📢 Major UpdateIn v0.59.0, we updated to CDK v2. I know major upgrades are often painful, but I want to make sure the update is easy and smooth for everyone. So I added a 5 step list to the release note. It shouldn’t take more than 5-15 minutes, depending on the size of your app. If you have any questions, feel free to shoutout in the #help channel.
Adrián Mouly
01/14/2022, 3:33 AM-
to _
?Adrián Mouly
01/14/2022, 3:33 AMFrank
alpha
packages, they are still using -
🤷♂️Michael Wolfenden
01/14/2022, 4:57 AMcdk bootstrap
Frank
Michael Wolfenden
01/14/2022, 6:06 AMMichael Wolfenden
01/14/2022, 6:06 AMcdk bootstrap
resolved the issue, but I don't remember ever having to do that with cdk v1Frank
Michael Wolfenden
01/14/2022, 6:08 AMMyStack failed: Error: MyStack: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see <https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html>)
at CloudFormationDeployments.validateBootstrapStackVersion (.../aws-cdk/lib/api/cloudformation-deployments.ts:323:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
MyStack: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see <https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html>)
Richard Simpson
01/14/2022, 6:57 AMFrank
Simon Reilly
01/14/2022, 8:19 AMAdam Fanello
01/14/2022, 4:23 PMsst update
? I assume it still doesn't play nice with NPM workspaces.Frank
Frank
package.json
manually:
1. set @serverless-stack/*
to 0.59.1
2. change all @aws-cdk/aws-*
that are listed in the alpha packages list to @aws-cdk/aws-*-alpha
and set the version to 2.7.0-alpha.0
3. if you have @aws-cdk/core
or other @aws-cdk/aws-*
dependencies, remove them, and add aws-cdk-lib
with version 2.7.0
4. run yarn/npm install
5. do step 3 and 5 in the release noteDerek Kershner
01/14/2022, 5:24 PMJon Holman
01/14/2022, 9:46 PMError: Cannot find module 'colors/safe'
?Frank
Frank
Uncharted
01/15/2022, 9:11 AMinternal/modules/cjs/loader.js:443
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './core' is not defined by "exports" in /home/amai/projects/myproject-api/node_modules/aws-cdk-lib/package.json
at throwExportsNotFound (internal/modules/esm/resolve.js:290:9)
at packageExportsResolve (internal/modules/esm/resolve.js:513:3)
at resolveExports (internal/modules/cjs/loader.js:437:36)
at Function.Module._findPath (internal/modules/cjs/loader.js:477:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:872:27)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/home/amai/projects/myproject-api/.build/lib/index.js:2645:30)
at Module._compile (internal/modules/cjs/loader.js:1068:30) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Michael Wolfenden
01/15/2022, 9:18 AM@aws-cdk/core
import in my codeUncharted
01/15/2022, 9:21 AMUncharted
01/15/2022, 9:27 AMDerek Kershner
01/19/2022, 4:07 AM