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