开发者工具 1.06.2504010
版本 Windows 11 专业版
版本号 24H2
安装日期 2025-05-26
操作系统版本 26100.4652
体验 Windows 功能体验包 1000.26100.128.0
Error: 非法的文件,错误信息:invalid file: plugins/index.js, 1:373, SyntaxError: Unexpected token ?"use strict";const e=require("./modules/pinia.js"),s=require("./modules/uview.js"),i=require("./modules/vconsole.js"),o=require("../common/vendor.js"),l=Object.assign({"./modules/pinia.ts":e.__vite_glob_0_0,"./modules/uview.ts":s.__vite_glob_0_1,"./modules/vconsole.ts":i.__vite_glob_0_2}),t={install:e=>{Object.values(l).forEach(s=>{try{const i=(null==s?void 0:s.default)??s;o.isFunction(i)&&i(e)}catch(e){console.warn("Module in... [20250722 18:05:14][wx2f577fa22e281ed8] [1.06.2504010][win32-x64]
不单只 可选链操作符(?.)报错,空值合并操作符 (??)同样报错, 工程截止昨天依然上传正常,今天自动升级后出问题,回滚依然不行。
转 es5
This @babel/plugin-proposal-private-property-in-object version is not meant to
be imported. Something is importing
@babel/plugin-proposal-private-property-in-object without declaring it in its
dependencies (or devDependencies) in the package.json file.
Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies
to work around this error. This will make this message go away.
以上是使用ES5之后,不但还没到上传那一步,模拟的时候已经频繁滚动上述错误
报错更多