npmvue.js95% confidence\u2191 26

Failed to load config from \Project\vuejs-frontend\vite.config.js: VueJS

Full error message
My Project was running fine yesterday but after revisiting project today I came across this error when trying to run the project.

Here is my vite.config.js file:

import { fileURLToPath, URL } from "node:url";

import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
    },
  },
});

Here is the error I'm getting:

failed to load config from C:\Users\Desktop\Learn\Project\vuejs-frontend\vite.config.js
error when starting dev server:
Error: The service was stopped
    at C:\Users\Desktop\Learn\Project\vuejs-frontend\node_modules\esbuild\lib\main.js:1337:25
    at C:\Users\Desktop\Learn\Project\vuejs-frontend\node_modules\esbuild\lib\main.js:666:9
    at Socket.afterClose (C:\Users\Desktop\Learn\Project\vuejs-frontend\node_modules\esbuild\lib\main.js:644:7)
    at Socket.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Please share with me any helpful tips you know. Thank you

Please check your node version, in my case i update my node version {node: 'v14.17.6'} as showed bellow, and everything goes well. --- Log --- package: '[email protected]', required: { node: '^14.18.0 || >=16.0.0' }, current: { node: 'v14.17.6', npm: '8.15.0' } Hope it help

API access

Get this solution programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/error/eced7ce89e41131a45ed3d7b8dc47f4c2ffa20de0a7fa294e129502a11009935
hash \u00b7 eced7ce89e41131a45ed3d7b8dc47f4c2ffa20de0a7fa294e129502a11009935
Failed to load config from \Project\vuejs-frontend\vite.conf… — DepScope fix | DepScope