https://serverless-stack.com/ logo
#help
Title
# help
a

Andrew Blaney

03/30/2022, 6:04 PM
is anyone using
pnpm
with
v0.69.3
?
sst build
seems to be broken due to this change (code dump in thread)!
Copy code
➜  services git:(bump-dependencies) ✗ pnpm run build                                                                                                                               <aws:dev-andrew-admin>

> services@0.1.0 build /Users/andrewblaney/Code/services
> sst build

Using stage: devlocal
Preparing your SST app
Synthesizing CDK
Error: spawn /Users/andrewblaney/Code/services/node_modules/.pnpm/aws-cdk@2.15.0/node_modules/.bin/cdk ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:274:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /Users/andrewblaney/Code/services/node_modules/.pnpm/aws-cdk@2.15.0/node_modules/.bin/cdk',
  path: '/Users/andrewblaney/Code/services/node_modules/.pnpm/aws-cdk@2.15.0/node_modules/.bin/cdk',
  spawnargs: [
    'synth',
    '--no-version-reporting',
    '--app',
    'node .build/run.js',
    '--output',
    '.build/cdk.out',
    '--quiet'
  ],
  stderr: ''
}
spawn /Users/andrewblaney/Code/services/node_modules/.pnpm/aws-cdk@2.15.0/node_modules/.bin/cdk ENOENT
f

Frank

03/30/2022, 8:13 PM
Hey @Andrew Blaney, i will try to cut a release w/ the fix tonite.
In the meanwhile, can u change that line inside the
dist
folder to:
Copy code
path.join(matches[1], "aws-cdk", "bin", "cdk");
a

Andrew Blaney

04/11/2022, 12:06 PM
sorry for the delay in the reply @Frank! your temp fix worked so I can build locally, but whilst doing a dependency update, we’re still seeing this with SST v0.69.5
hey @Frank - looking at this again - I’m now seeing a different error when I run SST build for version 0.69.1 - I think bceause the package.json specifies these two dependencies with a
^
we’re getting 0.69.5 of them as well, with
pnpm
thanks for v0.69.6 @Frank! 🙏 🙏