我在webpack或git中遇到了一个奇怪的问题。
我的项目有一个本地存储库(webpack-babel-react)。我本地仓库的限制正在发挥作用。
将更改推送到远程存储库然后将其克隆到其他位置后,我无法捆绑某些文件。
执行diff -r repo1 repo2
未显示两个存储库之间的任何差异。因此我认为git正在正常工作。
我无法理解webpack消息错误:
ERROR in ./app/js/components/Convictions/SectorsSliders.react.js
Module build failed: TypeError: /path/app/js/components/Convictions/SectorsSliders.react.js: Cannot set property 'Symbol(should not be considered a local binding)' of undefined
at Object.push (/path/node_modules/babel-helper-define-map/lib/index.js:96:37)
at pushToMap (/path/node_modules/babel-plugin-transform-es2015-classes/lib/vanilla.js:191:25)
at pushMethod (/path/node_modules/babel-plugin-transform-es2015-classes/lib/vanilla.js:531:10)
at pushBody (/path/node_modules/babel-plugin-transform-es2015-classes/lib/vanilla.js:312:16)
at buildBody (/path/node_modules/babel-plugin-transform-es2015-classes/lib/vanilla.js:244:10)
at run (/path/babel-plugin-transform-es2015-classes/lib/vanilla.js:151:10)
at PluginPass.ClassExpression (/path/node_modules/babel-plugin-transform-es2015-classes/lib/index.js:63:60)
at newFn (/path/node_modules/babel-traverse/lib/visitors.js:293:19)
at NodePath._call (/path/node_modules/babel-traverse/lib/path/context.js:74:18)
at NodePath.call (/path/node_modules/babel-traverse/lib/path/context.js:46:17)
@ ./app/js/components/Convictions/Options.react.js 29:22-55
同样,这在存储库中可以正常工作,但在另一个存储库中则不行! 我目前正在尝试了解它是否与ES2015转换有关。