You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when attempting to deploy a Next.js application:
Error: failed to register new resource SiteSourcemap5edb9939 [aws:s3/bucketObjectv2:BucketObjectv2]: 2 UNKNOWN: failed to compute asset hash for "source": failed to open asset file '.next/server/app/my-page/page.js.map': open .next/server/app/my-page/page.js.map: no such file or directory
at new Resource (/home/runner/work/my-app/my-app/.sst/platform/node_modules/@pulumi/aws/node_modules/@pulumi/resource.ts:507:13)
at new CustomResource (/home/runner/work/my-app/my-app/.sst/platform/node_modules/@pulumi/aws/node_modules/@pulumi/resource.ts:897:9)
at new BucketObjectv2 (/home/runner/work/my-app/my-app/.sst/platform/node_modules/@pulumi/s3/bucketObjectv2.ts:439:9)
at file:///home/runner/work/my-app/my-app/.sst/platform/src/components/aws/nextjs.ts:1388:13
at Array.forEach (<anonymous>)
at file:///home/runner/work/my-app/my-app/.sst/platform/src/components/aws/nextjs.ts:1385:18
at /home/runner/work/my-app/my-app/.sst/platform/node_modules/@pulumi/output.ts:398:31
at Generator.next (<anonymous>)
at /home/runner/work/my-app/my-app/.sst/platform/node_modules/@pulumi/pulumi/output.js:21:71
I traced the issue to .sst/platform/src/components/aws/nextjs.ts and its uploadSourcemaps function. I was able to patch locally by updating the source path for new aws.s3.BucketObjectv2:
thdxr
changed the title
Failed to register new resource (sourcemaps), no such file or directory
[ION-220] Failed to register new resource (sourcemaps), no such file or directory
Mar 28, 2024
thdxr
changed the title
[ION-220] Failed to register new resource (sourcemaps), no such file or directory
Failed to register new resource (sourcemaps), no such file or directory
Mar 28, 2024
I'm getting this error when attempting to deploy a Next.js application:
I traced the issue to
.sst/platform/src/components/aws/nextjs.ts
and itsuploadSourcemaps
function. I was able to patch locally by updating thesource
path fornew aws.s3.BucketObjectv2
:This doesn't help when attempting to deploy via CI so it'd be great if someone could look into this.
ION-220
The text was updated successfully, but these errors were encountered: