他伙计们
我正在使用shoutem和一个原生反应的webpack 4项目,我得到了以下错误...
./src/node_modules/MyProject/boilerplate/node_modules/tinycolor2/tinycolor.js
Line 1187: 'define' is not defined no-undef
Line 1188: 'define' is not defined no-undef
Search for the keywords to learn more about each error.我相信这与AMD和CommonJS有关,但当我试图关闭n WebPack时,我得到了同样的问题。
有没有人有什么想法?
发布于 2018-05-22 17:21:36
添加:
"env": {
"amd": true
}在您的eslintrc文件中。
https://stackoverflow.com/questions/50463909
复制相似问题