supabase icon indicating copy to clipboard operation
supabase copied to clipboard

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

Open della3a opened this issue 1 year ago • 1 comments

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);

della3a avatar Jun 06 '23 15:06 della3a