medplum / medplum-chart-demo

Apache License 2.0
3 stars 14 forks source link

error in `npm run build:bots` #5

Closed lien-dkseo closed 3 weeks ago

lien-dkseo commented 1 month ago
medplum-chart-demo> npm run build:bots

> medplum-chart-demo@3.2.1 build:bots
> npm run clean && tsc --project tsconfig-bots.json && node --no-warnings esbuild-script.mjs && node --loader ts-node/esm src/scripts/deploy-bots.ts

> medplum-chart-demo@3.2.1 clean
> rimraf dist

error TS2688: Cannot find type definition file for 'vitest/globals'.
  The file is in the program because:
    Entry point of type library 'vitest/globals' specified in compilerOptions

  tsconfig-bots.json:6:15
    6     "types": ["vitest/globals"],
                    ~~~~~~~~~~~~~~~~
    File is entry point of type library specified here.

Found 1 error.
lien-dkseo commented 1 month ago

npm install -D vitest @medplum/definitions @medplum/mock @medplum/bot-layer ts-node

lien-dkseo commented 1 month ago
> npm run build:bots

> medplum-chart-demo@3.2.1 build:bots
> npm run clean && tsc --project tsconfig-bots.json && node --no-warnings esbuild-script.mjs && node --loader ts-node/esm src/scripts/deploy-bots.ts

> medplum-chart-demo@3.2.1 clean
> rimraf dist

Build completed successfully!
(node:12316) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
lien-dkseo commented 1 month ago
> node -v
v20.15.1
zuchka commented 4 weeks ago

bump. just hit this too.