Getting Uncaught SyntaxError: Unexpected template string on production build with NextJS
Currently using NextJS for frontend and turborepo
Console error
Uncaught SyntaxError: Unexpected template string (at _app-f54835a384f76a9d.js:15:3257677)
Source is definitely pointing to the library's dist files

hey @mhroes9627 thanks for reporting this!
Could you provide some additional information for us to be able to reproduce this, specifically your:
- nextjs version
- react version
- @thirdweb-dev/sdk version
- @thirdweb-dev/react version
- any config / files difference from a basic next.js installation
Even more helpful if you could provide a github repo or code sandbox that has this issue that we can clone and investigate.
Hey @jnsdls, thank you for taking the time to respond! I was able to fix the issue on our end by setting this config
swcMinify: false,
under this file
So setting swcMinify to true produces the same error.
Hey @jnsdls, thank you for taking the time to respond! I was able to fix the issue on our end by setting this config
swcMinify: false,under this file So setting
swcMinifyto true produces the same error.
thanks for the update, I'll try to reproduce the setup with turborepo and our starter project to try to fix the underlying bug.
Glad that you found a workaround for now!