diff --git a/sdks/react/troubleshooting.mdx b/sdks/react/troubleshooting.mdx index 7e0f8d7b..7b837a7c 100644 --- a/sdks/react/troubleshooting.mdx +++ b/sdks/react/troubleshooting.mdx @@ -412,7 +412,7 @@ function RadixDialog() { /> #### Problem -This error occurs when using Create React App (CRA) and trying to import `@turnkey/react-wallet-kit`. CRA requires that all imports include the file extension to be fully specified. +This error occurs when using Create React App (CRA) and trying to import `@turnkey/react-wallet-kit`. CRA requires that all imports include the file extension to be fully specified. Note that this can also occur in strict ESM build environments (e.g., Next.js builds in CI) where fully specified imports are required. In those cases you may see errors like: `Cannot find module '@turnkey/core/dist/__types__/enums'` and a suggestion to import `@turnkey/core/dist/__types__/enums.js`. The fix is to ensure the import is resolved with the `.js` extension (e.g., `@turnkey/core/dist/__types__/enums.js`). If you can't edit the package source directly, apply a small build-time patch that rewrites the import. #### Solution