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
Hi guys! First, thanks for putting the time to work on this project!
I'm playing around next-yak in a MDX project where the following error occurred while trying to colocate the styles:
"Module build failed: UnhandledSchemeError: Reading from "node:fs/promises" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs."
Please see the Page.tsx, comment the import Article line and uncomment the styled block on the bottom of the page to see the error.
As I still a bit confused with the "use server" directive in Next, I add it to the top. The error goes away, but no styles are applied to that specific HTML element.
The text was updated successfully, but these errors were encountered:
Thank you very much for the detailed issue description and for taking the time to create a reproduction. Upon first glance it looks for me that this is related to #112 where we created a bug for next.js in vercel/next.js#67591.
I had again a look yesterday at the problem but I didn't find a fast solution (yet). I will keep you in the loop.
Just a small update: everything working fine after I add "use server" on top of the file posts-queries.ts. I guess @Mad-Kat may be in the right direction on this one.
Hi guys! First, thanks for putting the time to work on this project!
I'm playing around next-yak in a MDX project where the following error occurred while trying to colocate the styles:
"Module build failed: UnhandledSchemeError: Reading from "node:fs/promises" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs."
Here is a repo example: https://github.com/clovis-rosa/nextjs-mdx-blog-next-yak
Please see the Page.tsx, comment the import Article line and uncomment the styled block on the bottom of the page to see the error.
As I still a bit confused with the "use server" directive in Next, I add it to the top. The error goes away, but no styles are applied to that specific HTML element.
The text was updated successfully, but these errors were encountered: