You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check if updating to the latest Preact version resolves the issue
Package subpath './compat/jsx-runtime.js' is not defined by "exports" in preact/package.json
I'm using preact in next js and tried updating to next 12, I'm using mdx-bundler which import "react/jsx-runtime" internally.
Error :
error - ./node_modules/mdx-bundler/dist/client.js:11:0
Module not found: Package path ./compat/jsx-runtime.js is not exported from package /Users/arpit/Developer/personal_website/node_modules/preact (see exports field in /Users/arpit/Developer/personal_website/node_modules/preact/package.json)
Import trace for requested module:
./node_modules/mdx-bundler/client/index.js
./pages/index.tsx
https://nextjs.org/docs/messages/module-not-found
error - Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './compat/jsx-runtime.js' is not defined by "exports"in /Users/arpit/Developer/personal_website/node_modules/preact/package.json
When I check the node_modules, I can see that "jsx-runtime" is inclued in the exports field.
Package subpath './compat/jsx-runtime.js' is not defined by "exports" in preact/package.json
I'm using preact in next js and tried updating to next 12, I'm using mdx-bundler which import "react/jsx-runtime" internally.
Error :
When I check the node_modules, I can see that "jsx-runtime" is inclued in the exports field.
The text was updated successfully, but these errors were encountered: