-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error with NextJs #3502
Comments
What is the reason for having React 18 installed alongside Preact? |
@developit I use React while developing and only replace it with Preact in production. |
I'm having the same issue from within my GatsbyJS project after upgrading to React 18. Module not found: Error: Package path ./compat/client is not exported from package D:\XXX\XXX\node_modules\preact (see exports field in D:\XXX\XXX\node_modules\preact\package.json) |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Next.js -> package.json:
Describe the bug
I am using Preact to replace React with webpacks alias config. After upgrading to React 18 I get following error when I try to build:
(I removed personal data from the path)
To Reproduce
Steps to reproduce the behavior:
yarn create next-app --typescript
yarn add preact
yarn build
Expected behavior
Build should succeed without errors.
The text was updated successfully, but these errors were encountered: