react:createRequire is not a function Referenced from: BaseConfig


https://stackoverflow.com/questions/64835000/error-createrequire-is-not-a-function-referenced-from-baseconfig

好像是因为版本问题

Other details: npm version 6.14.8 react version 17.0.1

但是问题是,我本地的react也是这个版本。。并没有问题啊。。

所以,这说明react17.0.1是支持node10编译的。。

那么会是哪个dependency不支持node10呢。。。

但是,只把src代码复制过去却还是报错:

import' and 'export' may only appear at the top level

https://blog.csdn.net/qq_26909801/article/details/105970679

也是跟ESLint有关。。

https://blog.csdn.net/yidragon88xx/article/details/77198302


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM