#✅ - Dynamic import chunks missing when build on amplify hosting when (SSG Next 13)

1 messages · Page 1 of 1 (latest)

bronze jolt
#

I have a dynamic import in a web worker.

When running build etc locally these files appear in the generated chunks.

When running build in the amplify CI these chunks are missing.

Any ideas why that might be?

Oh and there are no errors when running next build.

I've compared the output directly locally vs created in amplify.

Is there any reason why running build on the same files could result in a different set of chunks?

bronze jolt
#

This was down to NextJS not supporting webpack preload comments. Although I have no idea why it worked locally!

low pawnBOT
#

✅ - Dynamic import chunks missing when build on amplify hosting when (SSG Next 13)