masslight / ottehr

Modular, Production-Ready, Open-Source EHR
https://ottehr.com
Other
151 stars 174 forks source link

setup.ts is not working anymore SyntaxError: Unexpected token 'export' #136

Closed r-ichard closed 9 months ago

r-ichard commented 9 months ago

Hi :wave: ,

I tried to install OtterEHR and I am facing the following issue :

pnpx ts-node ./scripts/setup.ts                                
Packages: +20
++++++++++++++++++++
Progress: resolved 20, reused 20, downloaded 0, added 20, done
/home/richard/code/ottehr/node_modules/.pnpm/file+packages+utils/node_modules/utils/lib/main.ts:1
export * from './helpers';
^^^^^^

SyntaxError: Unexpected token 'export'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1274:20)
    at Module._compile (node:internal/modules/cjs/loader:1320:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Object.require.extensions.<computed> [as .ts] (/home/richard/.local/share/pnpm/store/v3/tmp/dlx-140800/node_modules/.pnpm/ts-node@10.9.2_@types+node@20.11.16_typescript@5.3.3/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/home/richard/code/ottehr/packages/urgent-care/zambdas/src/shared/other-ehr.ts:4:1)

The work around we found is to revert to this commit : 5d533ce6868bb3707ec3d9b6b35a053ac21c0c13

AykhanAhmadli commented 9 months ago

Hi, thanks for letting us know. Fixed via https://github.com/masslight/ottehr/pull/137