-
Notifications
You must be signed in to change notification settings - Fork 144
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
Plans to fetch data using co-location within JSX #203
Comments
Yes |
I get errors with React 18:
|
At this time, if you're experiencing errors with React 18 concurrency features, check:
If none of that works try adding this to your webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
"react/jsx-runtime.js": path.resolve("node_modules/react/jsx-runtime"),
};
return config;
}, Or you can try Note that, with time, this will probably break! |
@fernpolo pinning |
Closing this for now, thanks for raising the question! We'll be following the progress of the data-fetching evolutions in Next.js and look at how we'll be able to update |
The newly announced Next.js 12 signals a future shift by the Next team to move away from 'data functions' like
getStaticProps
to co-locating data collection within JSX.Builds using experimental React 18 (which is in alpha) features - like SSR and RSC - on Next 12 currently fail.Are there plans to adapt the
next-mdx-remote
package into this new model?The text was updated successfully, but these errors were encountered: