jetbridge / cdk-nextjs

Deploy a NextJS application using AWS CDK
https://constructs.dev/packages/cdk-nextjs-standalone
Apache License 2.0
268 stars 45 forks source link

cdk example install doesn't work #231

Open ktwbc opened 4 days ago

ktwbc commented 4 days ago

Just trying to follow README directions, won't even compile

➜  dev git clone https://github.com/jetbridge/cdk-nextjs.git
Cloning into 'cdk-nextjs'...
remote: Enumerating objects: 1980, done.
remote: Counting objects: 100% (1980/1980), done.
remote: Compressing objects: 100% (782/782), done.
remote: Total 1980 (delta 1328), reused 1698 (delta 1176), pack-reused 0 (from 0)
Receiving objects: 100% (1980/1980), 8.96 MiB | 14.92 MiB/s, done.
Resolving deltas: 100% (1328/1328), done.
➜  dev cd cdk-nextjs
➜  cdk-nextjs git:(main) yarn install
yarn install v1.22.19
[1/5] πŸ”  Validating package.json...
[2/5] πŸ”  Resolving packages...
[3/5] 🚚  Fetching packages...
[4/5] πŸ”—  Linking dependencies...
[5/5] πŸ”¨  Building fresh packages...
warning Your current version of Yarn is out of date. The latest version is "1.22.22", while you're on "1.22.19".
info To upgrade, run the following command:
$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
✨  Done in 16.05s.
➜  cdk-nextjs git:(main) yarn build
yarn run v1.22.19
$ npx projen build
πŸ‘Ύ build Β» default | ts-node --project tsconfig.dev.json .projenrc.ts
/Volumes/dev/cdk-nextjs/node_modules/@mrgrain/jsii-struct-builder/src/private/assembly.ts:40
        throw new AggregateError([error, errorLocal], `jsii assembly ${asm} not found`);
              ^
bestickley commented 3 days ago

@ktwbc, try running yarn compile before yarn build