Open raurir opened 1 month ago
@agdimech Are you having the same issue in #710 ?
I've also had this issue and can't find a solution...
Hi - sorry for the delayed response.
The reason this is happening is because we actual pin the projen version as per: https://github.com/aws/aws-pdk/blob/6fc5ca16bb87fb00d61f25844ce2463c1c90980f/packages/monorepo/src/components/projen-dependency.ts#L4
So what is happening is the following:
1.) npm-check-updates runs and bumps everything to the latest version (projen is 0.82.6 as of today) 2.) syncpack ensures all subprojects use this version 3.) a synthesis occurs which picks up the default projen version which is currently pinned to ^0.79.24
To resolve this, you will need to do pin the projen version within your .projenrc
as follows:
Option A: Pinned Version
const monorepo = new MonorepoTsProject({
name: "@demo/monorepo",
defaultReleaseBranch: "main",
packageManager: NodePackageManager.PNPM,
projenVersion: "^0.82.6",
tsconfig: {
compilerOptions: {
lib: ["es2019", "dom"],
skipLibCheck: true,
},
},
});
Option B: Latest Resolved Version
Note: this will result in the projen version being bumped each time you run a synth.
const monorepo = new MonorepoTsProject({
name: "@demo/monorepo",
defaultReleaseBranch: "main",
packageManager: NodePackageManager.PNPM,
projenVersion: "*",
tsconfig: {
compilerOptions: {
lib: ["es2019", "dom"],
skipLibCheck: true,
},
},
});
Let me know if this resolves your issue and again apologies for the delay (I was on vacation and then quite sick :( )
@agdimech Thank you!
Very Close... the dependencies updated, and almost everything builds.
Unfortunately the latest CloudscapeReactTsWebsiteProject
is causing this error when building the website:
Attempted import error: 'getLogicalBoundingClientRect' is not exported from '@cloudscape-design/component-toolkit/internal' (imported as 'getLogicalBoundingClientRect').
I have logged a bug here which hopefully resolves it: https://github.com/cloudscape-design/component-toolkit/issues/66
In my demo repo I did not add a CloudscapeReactTsWebsiteProject to keep things simple :(
Describe the bug
Attempting to upgrade pdk, pdk dependencies and projen roles back to previous versions.
Expected Behavior
aws/pdk should be upgraded to latest and projen should be upgraded to latest.
Current Behavior
Relevant bits of the upgrade logs included from reproduction steps below.
@aws/pdk
goes from0.23.35
to0.23.38
then back to0.23.35
projen
goes from0.79.24
to0.81.15
back to0.79.27
Reproduction Steps
Using these versions:
@aws/pdk 0.23.35
&projen 0.79.24
Running the following steps does not upgrade pdk/projen:
pnpm run upgrade
pnpm upgrade-deps
pnpm default
Possible Solution
No response
Additional Information/Context
A demo repo has been setup, hopefully it behaves the same in other environments:
https://github.com/raurir/projen-pdk-upgrade-issue/
PDK version used
0.23.35
What languages are you seeing this issue on?
Typescript
Environment details (OS name and version, etc.)
Macos 14.4