SolidJSS
SolidJSโ€ข2y agoโ€ข
1 reply
jtag05

ReferenceError: exports is not defined when using islands on dev

First of all, congrats on the v1 launch ๐ŸŽ‰ !
I have been playing around over the weekend and hit a snag where I am getting this error log from a node_module exclusively when running islands in development. Using build & start, everything works just fine. I noticed a similar error reported back in 2022 (https://github.com/solidjs/solid-start/issues/221). I'm curious if anyone has figured out the root cause of this yet.

Full Error:
[vite] Error when evaluating SSR module /node_modules/.pnpm/@supabase+node-fetch@2.6.15/node_modules/@supabase/node-fetch/lib/index.js:
|- ReferenceError: exports is not defined
Was this page helpful?