-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Error when adding next/link to async Page #238
Comments
So we have fixed it in the repo but not yet published a new version with the fix (v0.0.23). We'll be doing a new release this week that should have the fix. |
|
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @aleksandrjet! How was your experience with our support team? |
Thanks! Now it is working |
@brijeshb42 The recent fix for handling |
Here's what you can try. In your Pigment config, you can add an const pigmentConfig = {
// other items
asyncResolve(what) {
if (what === 'next-intl') {
return require.resolve('./dummy-module');
}
return null;
}
} Also create a module.exports = {
// provide stubs having the same exports as what `next-intl` provides
} Let me know what happens with this change. Same thing happens in the next.js plugin module as well for |
@brijeshb42 Thank you for the quick response. I will test it |
Steps to reproduce
I saw that it has #228, but the problem still keeps. I got to reproduce this in
curl https://codeload.github.com/mui/pigment-css/tar.gz/master | tar -xz --strip=2 pigment-css-master/examples/pigment-css-nextjs-ts
by addingimport NextLink from 'next/link'
and make the page is asyncI used
[email protected]
and@pigment-css/[email protected]
Is there any understanding when it will fix?
Current behavior
I got error when run
npm run dev
Expected behavior
No response
Context
No response
Your environment
I don't use mui
Search keywords: next/link, next, async
The text was updated successfully, but these errors were encountered: