Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure in pnpm generate-tools-list #14

Open
giper45 opened this issue Oct 4, 2023 · 0 comments
Open

Build failure in pnpm generate-tools-list #14

giper45 opened this issue Oct 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@giper45
Copy link
Contributor

giper45 commented Oct 4, 2023

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

@giper45 giper45 added the bug Something isn't working label Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant