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

npx houdini init failing with 0.17.0 #628

Closed
sjcobb2022 opened this issue Oct 22, 2022 · 4 comments · Fixed by #630
Closed

npx houdini init failing with 0.17.0 #628

sjcobb2022 opened this issue Oct 22, 2022 · 4 comments · Fixed by #630

Comments

@sjcobb2022
Copy link
Contributor

sjcobb2022 commented Oct 22, 2022

Describe the bug

Hi there. After updating to 0.17.0 I've had some migration issues so I attempted to try everything from a simple base program.

After install houdini and houdini-svelte, I then attempted to run npx houdini init.

Whether I had config files already present or not, the code would fail anyway.

I have another breaking error with the update but I believe it is totally unrelated so i will make another issue for this.

Severity

blocking all usage of Houdini

Steps to Reproduce the Bug

  1. npm create svelte@latest my-app
  2. npm i -D houdini houdini-svelte
  3. npx houdini init

Receive error

home/sjcobb/.npm/_npx/754cf465adfd4c79/node_modules/.bin/houdini: line 1: syntax error near unexpected token `('
/home/sjcobb/.npm/_npx/754cf465adfd4c79/node_modules/.bin/houdini: line 1: `import { createRequire as conflict_free } from 'module'; const require = conflict_free(import.meta.url);'

Reproduction

No response

@AlecAivazis
Copy link
Collaborator

Damn, I had a hunch something like this would happen. Can you tell me what version of node you are using?

@sjcobb2022
Copy link
Contributor Author

Damn, I had a hunch something like this would happen. Can you tell me what version of node you are using?

LTS, 16.18

@AlecAivazis
Copy link
Collaborator

Okay, cool. I upgrade to 16.18 and reproduced it . I have a fix, will publish it along with the css fix. Thanks for being patient!

@sjcobb2022
Copy link
Contributor Author

Awesome thanks man!

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

Successfully merging a pull request may close this issue.

2 participants