I have been working on a project that uses react, typescript, c#, and sql. Everything was running last night, but this morning when I go to restart my project with npm start it doesnt load and I get this error
SyntaxError: Unexpected token , in JSON at position 75346
at JSON.parse (<anonymous>)
at Object.getBuildInfo (C:\Users\codya\airlineservice\node_modules\typescript\lib\typescript.js:108782:21)
at readBuilderProgram (C:\Users\codya\airlineservice\node_modules\typescript\lib\typescript.js:121325:28)
at Object.createWatchProgram (C:\Users\codya\airlineservice\node_modules\typescript\lib\typescript.js:121480:26)
at Object.<anonymous> (C:\Users\codya\airlineservice\node_modules\fork-ts-checker-webpack-plugin\lib\typescript-reporter\reporter\TypeScriptReporter.js:304:59)
at Generator.next (<anonymous>)
at C:\Users\codya\airlineservice\node_modules\fork-ts-checker-webpack-plugin\lib\typescript-reporter\reporter\TypeScriptReporter.js:8:71
at new Promise (<anonymous>)
at __awaiter (C:\Users\codya\airlineservice\node_modules\fork-ts-checker-webpack-plugin\lib\typescript-reporter\reporter\TypeScriptReporter.js:4:12)
at Object.getIssues (C:\Users\codya\airlineservice\node_modules\fork-ts-checker-webpack-plugin\lib\typescript-reporter\reporter\TypeScriptReporter.js:227:28)
I am not even sure where to start in looking to fix this
did not have any issues there. The only thing I can think of is when trying to get my edit flight modal working, maybe it inserted something it doesnt like in the backend
Sorry was busy today and did not get a chance to respond earlier. I fixed the issue, just deleted my node modules folder and then ran npm install again
Well, that seems a bit odd. Sounds more like a coincidence to me but hey you never know (I just don’t see how anything can have changed with the packages if you didn’t touch the code)
I dont understand it myself. It was just “lets see if this does anything” kind of things. At first, it didnt seem like it would work. It did take a while for react to start up, but eventually it loaded up.