webdevcody / wdc-saas-starter-kit

https://wdcstarterkit.com/
MIT License
748 stars 195 forks source link

Build Error with @aws-sdk/s3-request-presigner #8

Closed evert-arias closed 1 month ago

evert-arias commented 1 month ago

While building for production I encountered the following error with @aws-sdk/s3-request-presigner:

./node_modules/@aws-sdk/s3-request-presigner/dist-es/index.js + 34 modules
Cannot get final name for export 'booleanSelector' of ./node_modules/@smithy/util-config-provider/dist-es/index.js
evert-arias commented 1 month ago

As a workaround, I added the package to the serverComponentsExternalPackages array in the experimental object of next.config.mjs:

experimental: {
  serverComponentsExternalPackages: ["@aws-sdk/s3-request-presigner"],
},
webdevcody commented 1 month ago

thanks, I'll add that in an see if I can get this deployed. I won't lie, I haven't even tried deploying this code yet. Going to do that now

evert-arias commented 1 month ago

@webdevcody By the way, this template is great. It has my preferred stack and is well-structured. Thanks for putting this all together!

webdevcody commented 1 month ago

@evert-arias thanks man, tried my best to make it feel as polished as time would allow. reach out if you have any suggestions. I did your suggestion to the next.config which fixed the issue. I may close this for now since we have a quick "hack" solution.