问题是当我尝试运行 yarn start 然后说错误
yarn run v1.22.5$ react-app-rewired start
internal/modules/cjs/loader.js:1052
throw err;
^
SyntaxError: /Users/dariocoronel/Desktop/practices/Gostack/javascript/repo/frontend/front/jsconfig.json: Unexpected token } in JSON at position 85
at parse (<anonymous>)
at Object.Module._extensions..json (internal/modules/cjs/loader.js:1049:22)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
at getModules (/Users/dariocoronel/Desktop/practices/Gostack/javascript/repo/frontend/front/node_modules/react-scripts/config/modules.js:126:14)
at Object.<anonymous> (/Users/dariocoronel/Desktop/practices/Gostack/javascript/repo/frontend/front/node_modules/react-scripts/config/modules.js:142:18)
at Module._compile (internal/modules/cjs/loader.js:1015:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
但是当我删除我的 jsconfig.json 然后所有运行都没有问题,然后我在我的项目中再次创建我的 jsconfig 并放置我的所有配置,我在任何文件中进行更改,当重新启动时自动说没有错误重新启动没有问题并运行所有我改变了,但如果我重新启动服务器再次显示错误,我不想总是这样做我做错了什么?这是我的代码
{ "compilerOptions": {
"baseUrl": "src",
"paths": {
"~/*":["*"],
}
}
}
所以我把一些印刷品留在这里更清楚