Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
della3a opened this issue Jun 6, 2023 · 3 comments
Labels
bug Something isn't working Stale

Comments

@della3a
Copy link

della3a commented Jun 6, 2023

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 della3a added the bug Something isn't working label Jun 6, 2023
Copy link
Collaborator

larbish commented Jun 7, 2023

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

Copy link

github-actions bot commented May 6, 2025

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label May 6, 2025
Copy link

github-actions bot commented Jun 5, 2025

This issue was closed because it has been stalled for 30 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants