Describe the bug
Yarn install fails with unknown file exstension .ts.
To Reproduce
Clone the repo, and follows the install steps:
yarn install; cd web; yarn install;
The following error occurs:
> houdini-web@0.2.8 copy-library /houdini/web
> copyfiles -u 2 ../library/**/* src/library/
> houdini-web@0.2.8 generate-tools-list /Users/gx1/Git/SecSI/houdini/web
> npx ts-node --esm scripts/generate_tools_list.ts
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /houdini/web/scripts/generate_tools_list.ts
at new NodeError (node:internal/errors:405:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:99:9)
at defaultGetFormat (node:internal/modules/esm/get_format:142:36)
at defaultLoad (node:internal/modules/esm/load:115:20)
at nextLoad (node:internal/modules/esm/hooks:832:28)
at load (/houdini/web/node_modules/ts-node/dist/child/child-loader.js:19:122)
at nextLoad (node:internal/modules/esm/hooks:832:28)
at Hooks.load (node:internal/modules/esm/hooks:415:26)
at MessagePort.handleMessage (node:internal/modules/esm/worker:168:24)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Possible solutions
Replace ts-node with tsx:
https://www.npmjs.com/package/tsx
Describe the bug
Yarn install fails with unknown file exstension
.ts.To Reproduce
Clone the repo, and follows the install steps:
The following error occurs:
Possible solutions
Replace
ts-nodewithtsx:https://www.npmjs.com/package/tsx