今天在webstorm上打开小程序运行npm run dev:mp-weixin时报了如下错误
错误是:
const cache = options.cache ?? new SplitVendorChunkCache();
^
SyntaxError: Unexpected token '?'
错误原因是低版本的node不支持??运行符
解决方法:将node的版本升到14及以上即可
今天在webstorm上打开小程序运行npm run dev:mp-weixin时报了如下错误
错误是:
const cache = options.cache ?? new SplitVendorChunkCache();
^
SyntaxError: Unexpected token '?'
错误原因是低版本的node不支持??运行符
解决方法:将node的版本升到14及以上即可