Skip to content

运行时报错 #1

Description

@Martinellinnn

报错PS F:\Large Software\Github\smart-pet-with-mcp> pnpm dev

smart-pet-with-mcp@1.0.0 dev F:\Large Software\Github\smart-pet-with-mcp
electron-vite dev

file:///F:/Large%20Software/Github/smart-pet-with-mcp/node_modules/.pnpm/vite@6.2.5_@types+node@22.14.0_less@4.3.0/node_modules/vite/dist/node/chunks/dep-Pj_jxEzN.js:4
import fsp, { constants as constants$9 } from 'node:fs/promises';
^^^^^^^^^
SyntaxError: The requested module 'node:fs/promises' does not provide an export named 'constants'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
 ELIFECYCLE  Command failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions