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

fix(remix-init): add missing dependencies to remix.init script #149

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Sep 5, 2024

Description

When using pnpm or other package manager that strongly enforce using only declared dependencies, our current remix.init script fails due to trying to use packages that are transitively used by remix (so it works with npm for example due to way it likes to hoist transitive deps)

QA Instructions, Screenshots, Recordings

This can be tested by running

pnpm  create remix@latest --template https://github.com/netlify/remix-template/tree/pnpm-remix-init-fix

(the branch name is different than from this PR due to create-remix bug that fails when branch names contain / - remix-run/remix#8151 (comment) but it's otherwise exactly the same).

And compare to pnpm create remix@latest --template netlify/remix-template which does fail.

Note for testing - ensure directory where you create app doesn't already exist because weird things happen otherwise. So probably good to rm -rf my-remix-app before using create-remix

For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we
    can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style
    guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@pieh pieh requested a review from a team as a code owner September 5, 2024 15:00
Copy link

netlify bot commented Sep 5, 2024

Deploy Preview for remix-edge-on ready!

Name Link
🔨 Latest commit d48237f
🔍 Latest deploy log https://app.netlify.com/sites/remix-edge-on/deploys/66d9c778aaa0f000085ebf94
😎 Deploy Preview https://deploy-preview-149--remix-edge-on.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 5, 2024

Deploy Preview for remix-on ready!

Name Link
🔨 Latest commit d48237f
🔍 Latest deploy log https://app.netlify.com/sites/remix-on/deploys/66d9c7780af79e0008577ad3
😎 Deploy Preview https://deploy-preview-149--remix-on.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Sep 5, 2024
Copy link
Contributor

@serhalp serhalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!

@pieh pieh merged commit f7ea4fa into main Sep 6, 2024
21 checks passed
@serhalp serhalp deleted the michalpiechowiak/frp-1292-remixinit-script-fails-if-chosen-to-run-during-create-remix branch September 6, 2024 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remix.init script fails if chosen to run during create-remix bootstrapping
2 participants