Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

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

Open
Md-Aashiqq opened this issue Nov 16, 2022 · 2 comments
Open

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

Md-Aashiqq opened this issue Nov 16, 2022 · 2 comments

Comments

@Md-Aashiqq
Copy link

🐛 Bug Report

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

To Reproduce

  • I'm using node 12 to install dependencies.
  • there is no problem with the installation.
  • when I run js npm start scripts, I get an error like this.

Error message:

> @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
Copy link

Where you able to solve it?

@gouldcs
Copy link

gouldcs commented Nov 28, 2022

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants