nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
703 stars 128 forks source link

Error 500 [vite-node] [plugin:vite:import-analysis] [VITE_ERROR] /@fs./node_modules/nuxt/dist/app/entry.mjs #192

Open della3a opened 1 year ago

della3a commented 1 year ago

I have this issue just right after setting up supabase with the tutorial https://supabase.nuxtjs.org/get-started

Version

@nuxtjs/supabase: 0.3.6 nuxt: 3.0.0-rc.11

Reproduction Link

https://github.com/soixantecircuits/avatar

Steps to reproduce

README file of the repository

What is Expected?

Running the app

What is actually happening?

500 [vite-node] [plugin:vite:import-analysis] [VITE_ERROR] /@fs./node_modules/nuxt/dist/app/entry.mjs

import { createSSRApp, createApp, nextTick } from "vue"; import { $fetch } from "ohmyfetch"; import { baseURL } from "#build/paths.mjs"; import { createNuxtApp, applyPlugins, normalizePlugins } from "#app"; import "#build/css"; import _plugins from "#build/plugins"; import RootComponent from "#build/root-component.mjs"; import AppComponent from "#build/app-component.mjs"; if (!globalThis.$fetch) { globalThis.$fetch = $fetch.create({ baseURL: baseURL() }); } let entry; const plugins = normalizePlugins(_plugins); if (true) { entry = async function createNuxtAppServer(ssrContext) { const vueApp = createApp(RootComponent); vueApp.component("App", AppComponent); const nuxt = createNuxtApp({ vueApp, ssrContext }); try { await applyPlugins(nuxt, plugins); await nuxt.hooks.callHook("app:created", vueApp); } catch (err) { await nuxt.callHook("app:error", err); nuxt.payload.error = nuxt.payload.error || err; } return vueApp; }; } if (false) { if (true && import.meta.webpackHot) { import.meta.webpackHot.accept(); } entry = async function initApp() { const isSSR = Boolean(window.NUXT?.serverRendered); const vueApp = isSSR ? createSSRApp(RootComponent) : createApp(RootComponent); vueApp.component("App", AppComponent); const nuxt = createNuxtApp({ vueApp }); nuxt.hooks.hookOnce("app:suspense:resolve", () => { nuxt.isHydrating = false; }); try { await applyPlugins(nuxt, plugins); } catch (err) { await nuxt.callHook("app:error", err); nuxt.payload.error = nuxt.payload.error || err; } try { await nuxt.hooks.callHook("app:created", vueApp); await nuxt.hooks.callHook("app:beforeMount", vueApp); vueApp.mount("#__nuxt"); await nuxt.hooks.callHook("app:mounted", vueApp); await nextTick(); } catch (err) { await nuxt.callHook("app:error", err); nuxt.payload.error = nuxt.payload.error || err; } }; entry().catch((error) => { console.error("Error while mounting app:", error);

larbish commented 1 year ago

You are not even using the stable release of Nuxt. Your Nuxt version is 6 month old. Can you try with the latest (3.5.2) ?