tduck-front前端启动提示SyntaxError: Unexpected token ‘.‘

tduck-front前端启动提示SyntaxError: Unexpected token '.'

SyntaxError: Unexpected token ‘.’

SyntaxError: Failed to load plugin ‘vue’ declared in ‘.eslintrc.js’: Unexpected token ‘.’
Referenced from: D:\gitee\tduck-platform\tduck-front.eslintrc.js

D:\gitee\tduck-platform\tduck-front\node_modules\eslint-plugin-vue\lib\rules\no-deprecated-model-definition.js:74
const allowVue3Compat = Boolean(context.options[0]?.allowVue3Compat)
^

SyntaxError: Unexpected token ‘.’
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (D:\gitee\tduck-platform\tduck-front\node_modules\eslint-plugin-vue\lib\index.js:83:39)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
Process finished with exit code -1

可以参考
https://blog.csdn.net/qq_37628661/article/details/136298331
改成这样 //lintOnSave: process.env.NODE_ENV === ‘development’,
lintOnSave: false,
就可以了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值