qq_39434651 2022-02-27 17:05 采纳率: 0%
浏览 44

刚下载的项目 为啥不支持 ?.

failed to load config from E:\tohigh\ant-simple-pro-master\vue+typescript\vite.config.ts
error when starting dev server:
E:\tohigh\ant-simple-pro-master\vue+typescript\node_modules\vite-plugin-linter\dist\linters\EsLinter.js:22
if (options?.configEnv.command === "build") {
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:1054:16)
at Module._compile (internal/modules/cjs/loader.js:1102:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)

  • 写回答

2条回答 默认 最新

  • CSDN专家-showbo 2022-02-27 17:20
    关注

    node 版本太低了吧,或者编译器配置的编译语言版本太低了不支持可选链操作符ES11(2020),参考


    img

    评论 编辑记录

报告相同问题?

问题事件

  • 创建了问题 2月27日