cnpm run build 的时候报错,如下:
加载应用:voiceSpAvailable
加载应用:wechatTemplateList
WARN "baseUrl" option in vue.config.js is deprecated now, please use "publicPath" instead.
- Building for production... ERROR TypeError: Class extends value undefined is not a constructor or null
TypeError: Class extends value undefined is not a constructor or null
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous>
很郁闷,这个文件根本就不是我的啊,有半毛钱关系???
这里讲明下,最好使用 cnpm, 因为python 有个npm 。所以当你使用 npm 的时候很可能会冲