HospitalRun / hospitalrun-frontend

Frontend for HospitalRun
https://staging.hospitalrun.io
MIT License
6.8k stars 2.18k forks source link

Error occur in while install and run Hospital Run Frontend #3001

Open Md-Aashiqq opened 1 year ago

Md-Aashiqq commented 1 year ago

🐛 Bug Report

I'm trying to run a hospital-run front end on my local machine.

To Reproduce

@hospitalrun/frontend@2.0.0-alpha.7 translation:check D:\React folder\new tsc -p scripts/tsconfig.json && node ./bin/scripts/check-translations/index.js

node_modules/@types/react-router/index.d.ts(149,100): error TS1110: Type expected. node_modules/@types/react-router/index.d.ts(149,109): error TS1005: '}' expected. node_modules/@types/react-router/index.d.ts(149,114): error TS1128: Declaration or statement expected. node_modules/@types/react-router/index.d.ts(149,115): error TS1128: Declaration or statement expected. node_modules/@types/react-router/index.d.ts(151,18): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(151,19): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(151,26): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(151,32): error TS1109: Expression expected. node_modules/@types/react-router/index.d.ts(153,18): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(153,19): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(153,26): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(159,18): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(159,19): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(159,26): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(159,33): error TS1128: Declaration or statement expected. node_modules/@types/react-router/index.d.ts(159,35): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(159,42): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(159,67): error TS1161: Unterminated regular expression literal. node_modules/@types/react-router/index.d.ts(160,31): error TS1005: ':' expected. node_modules/@types/react-router/index.d.ts(160,48): error TS1005: '}' expected. node_modules/@types/react-router/index.d.ts(160,53): error TS1128: Declaration or statement expected. node_modules/@types/react-router/index.d.ts(160,56): error TS1005: ')' expected. node_modules/@types/react-router/index.d.ts(160,63): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(160,71): error TS1128: Declaration or statement expected. node_modules/@types/react-router/index.d.ts(163,18): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(163,19): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(163,26): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(163,33): error TS1128: Declaration or statement expected. node_modules/@types/react-router/index.d.ts(163,35): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(163,42): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(164,40): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(164,41): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(164,48): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(164,56): error TS1005: ')' expected. node_modules/@types/react-router/index.d.ts(164,63): error TS1005: ';' expected. node_modules/@types/react-router/index.d.ts(164,71): error TS1128: Declaration or statement expected. node_modules/@types/react-router/index.d.ts(199,1): error TS1160: Unterminated template literal. node_modules/chalk/source/vendor/ansi-styles/index.d.ts(150,29): error TS1005: ',' expected. node_modules/chalk/source/vendor/ansi-styles/index.d.ts(150,44): error TS1005: ',' expected. node_modules/chalk/source/vendor/ansi-styles/index.d.ts(150,58): error TS1005: ',' expected. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @hospitalrun/frontend@2.0.0-alpha.7 translation:check: tsc -p scripts/tsconfig.json && node ./bin/scripts/check-translations/index.js npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @hospitalrun/frontend@2.0.0-alpha.7 translation:check script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\mdaas\AppData\Roaming\npm-cache_logs\2022-11-16T07_37_10_953Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! @hospitalrun/frontend@2.0.0-alpha.7 start: npm run translation:check && react-scripts start npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the @hospitalrun/frontend@2.0.0-alpha.7 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\mdaas\AppData\Roaming\npm-cache_logs\2022-11-16T07_37_10_990Z-debug.log



## Your Environment

- *node version*: 12
- *fastify version*: >=1.0.0
- *os*: Windows
Mars-2030 commented 1 year ago

Where you able to solve it?

gouldcs commented 1 year ago

Check debug log here: C:\Users\mdaas\AppData\Roaming\npm-cache\_logs\2022-11-16T07_37_10_953Z-debug.log

post the log output if you couldn't get it resolved. If you did, post solution here :)