我的github

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

posted on 2021-04-03 18:00  XiaoNiuFeiTian  阅读(689)  评论(0编辑  收藏  举报