jtag05
jtag05
SSolidJS
Created by jtag05 on 5/29/2024 in #support
ReferenceError: exports is not defined when using islands on dev
For anyone that hits this in the future. The resolution was to tell vite that this dependency is an external in your app.config.ts
export default defineConfig({
ssr: true,
experimental: {
islands: true,
},
vite: {
ssr: {
external: ["@supabase/ssr"], // Or whatever dependency is throwing this for you.
},
},
});
export default defineConfig({
ssr: true,
experimental: {
islands: true,
},
vite: {
ssr: {
external: ["@supabase/ssr"], // Or whatever dependency is throwing this for you.
},
},
});
2 replies