If you are still running NextJS with React <=17, installing our latest SDK will fail to load the ESM module.This is because from 0.14.0+ we are now bundling a fully compliant hybrid ESM and CJS packages.After installing Dynamic’s package, you might see this error:
Copy
Ask AI
Error: Cannot find module 'nextjs-blog/node_modules/react/jsx-runtime' imported from nextjs-blog/node_modules/@dynamic-labs/sdk-react/index.jsDid you mean to import react/jsx-runtime.js?
This is because in React 18 they added an exports field to their package.json to handle mapping react/jsx-runtime to react/jsx-runtime.js