This keeps happening in create-react-app every time I add a package using yarn../node_modules/create-react-context/lib/index.jsSyntaxError: d:\project\client\node_modules\create-react-context\lib\index.js: Unexpected character ' ' (1:0)> 1 | | ^I have to copy thishttps://github.com/jamiebuilds/create-react-context/blob/master/src/index.jsand paste it to node_modules\create-react-context\lib\index.js every time to get rid off that error.I'm using VSCodium as my editor.How can I get rid off this error permanently? 解决方案 I haven't found a permanent solution to this problem. I had to stop working on that project for some reason and since then I didn't face this problem in any other project. In future if anyone stumbles upon this error this is the temporary solution for you.Copy the contents of this file https://github.com/jamiebuilds/create-react-context/blob/master/src/index.js to node_modules\create-react-context\lib\index.js. 这篇关于node_modules \ create-react-context \ lib \ index.js中的意外字符''(1:0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-28 03:20