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
I am trying to get emotion (mantine ui) working inside a route which is using edge runtime, however since emotion ssr is using some native nodejs modules (stream/buffer) I am kinda stuck. According to this gh comment remix-run#2813 (comment), remix does polyfills when targeting non nodejs environments and I wonder if this is still true? Currently when I am trying to deploy vercel I get the following error:
Error: The Edge Function "layout/:id" is referencing unsupported modules:
- duplexer2: ./internal/streams/stream, stream
- html-dom-parser: ./index.js
- multipipe: stream
- readable-stream: stream
- through: stream
In the end I just want to get emotion SSR working on an edge runtime. What is the best solution to do this?
The text was updated successfully, but these errors were encountered:
If Emotion is using Node.js-specific APIs then it won't work on Edge runtime. You would need to ask them to enable support for that. Looks like there is a relevant conversation here.
Hello,
I am trying to get emotion (mantine ui) working inside a route which is using edge runtime, however since emotion ssr is using some native nodejs modules (stream/buffer) I am kinda stuck. According to this gh comment remix-run#2813 (comment), remix does polyfills when targeting non nodejs environments and I wonder if this is still true? Currently when I am trying to deploy vercel I get the following error:
In the end I just want to get emotion SSR working on an edge runtime. What is the best solution to do this?
The text was updated successfully, but these errors were encountered: