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

Oops, remix.init failed - no such file or directory, open '/cypress/support/commands.js' #143

Closed
kevinbailey25 opened this issue Aug 15, 2022 · 5 comments · Fixed by #144

Comments

@kevinbailey25
Copy link

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

  1. run npx create-remix@latest
  2. name the app
  3. create a pre-configured stack
  4. select Indie
  5. select TypeScript
  6. select Yes to have it npm install.

Windows 10
Node 16.16.0
npm 8.15.1

Expected Behavior

remix.init shouldn't fail

Actual Behavior

image

@danrocha
Copy link

danrocha commented Aug 15, 2022

I am also having issues, but for me the file that is missing is:

/cypress/support/commands.js

(Node 16.16.0)

@kevinbailey25
Copy link
Author

I just ran this again and got \cypress\support\commands.js insted of the delete-user.js

@kevinbailey25 kevinbailey25 changed the title Oops, remix.init failed - no such file or directory, open '/cypress/support/delete-user.js' Oops, remix.init failed - no such file or directory, open '/cypress/support/commands.js' Aug 15, 2022
@onoj
Copy link

onoj commented Aug 15, 2022

I've also seen the same behaviour described above, delete-user.js first, and commands.js on subsequent runs.

macos 12.5
node 16.16
npm 8.11

Screenshot 2022-08-15 at 18 22 19

Screenshot 2022-08-15 at 18 23 11

@Guria
Copy link

Guria commented Aug 15, 2022

So to workaround a problem for now if you use Typescript:
Decline offer to install dependencies.
Edit init script like this: main...Guria:indie-stack:patch-1
Run:

npm i
npx remix init

Init no longer fails, but unfortunately I still not sure if it works like intended.
If you use JS do not rename extensions in init script/

@MichaelDeBoey
Copy link
Member

This will be fixed by #144

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.

5 participants