Skip to content

can not start vue project directly #29594

@aohanhongzhi

Description

@aohanhongzhi

Version: Deno 2.3.5

Image
 ~/Project/Web/air-share-plus  dev !1  deno task test                                                                                                                                              1 ✘ 
Task test vite --mode test
failed to load config from /Users/HOX4SGH/Project/Web/air-share-plus/vite.config.js
error when starting dev server:
TypeError: Relative import path "path" not prefixed with / or ./ or ../
  hint: If you want to use a built-in Node module, add a "node:" prefix (ex. "node:path").
    at file:///Users/HOX4SGH/Project/Web/air-share-plus/vite.config.js.timestamp-1749020635634-9c699d928f8078.mjs:15:8
    at async loadConfigFromBundledFile (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:55389:15)
    at async bundleAndLoadConfigFile (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:55232:22)
    at async loadConfigFromFile (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:55194:44)
    at async resolveConfig (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:54702:24)
    at async _createServer (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:44689:18)
    at async CAC.<anonymous> (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/cli.js:750:20)
 ~/Project/Web/air-share-plus  dev !1  deno task beta                                                                                                                                              1 ✘ 
Task beta vite --mode test
failed to load config from /Users/HOX4SGH/Project/Web/air-share-plus/vite.config.js
error when starting dev server:
TypeError: Relative import path "path" not prefixed with / or ./ or ../
  hint: If you want to use a built-in Node module, add a "node:" prefix (ex. "node:path").
    at file:///Users/HOX4SGH/Project/Web/air-share-plus/vite.config.js.timestamp-1749020690543-4da7e2c9aa38b.mjs:15:8
    at async loadConfigFromBundledFile (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:55389:15)
    at async bundleAndLoadConfigFile (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:55232:22)
    at async loadConfigFromFile (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:55194:44)
    at async resolveConfig (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:54702:24)
    at async _createServer (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/chunks/dep-Cg8OuIew.js:44689:18)
    at async CAC.<anonymous> (file:///Users/HOX4SGH/Project/Web/air-share-plus/node_modules/vite/dist/node/cli.js:750:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoneeds further information to be properly triagednode compat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions