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

[Bug]: Cannot find package 'ink' #2906

Closed
2 tasks done
gonzaloriestra opened this issue Sep 29, 2023 · 3 comments
Closed
2 tasks done

[Bug]: Cannot find package 'ink' #2906

gonzaloriestra opened this issue Sep 29, 2023 · 3 comments
Labels
Type: Bug Something isn't working

Comments

@gonzaloriestra
Copy link
Contributor

gonzaloriestra commented Sep 29, 2023

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

App

Expected behavior

It should work.

Actual behavior

It raises an error with Yarn, but it works with NPM or PNPM.

$ shopify app dev
╭─ error ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                           │
│  [MODULE_NOT_FOUND] import() failed to load /Users/gonzalo/tests/2023-09-29-ext/node_modules/@shopify/app/dist/cli/commands/app/dev.js: Cannot find       │
│  package 'ink' imported from /Users/gonzalo/tests/2023-09-29-ext/node_modules/@shopify/app/dist/cli/services/dev/ui/components/Dev.js                     │
│                                                                                                                                                           │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Reproduction steps

  1. yarn create @shopify/app --template none
  2. yarn generate extension --template subscription_ui --flavor react
  3. yarn dev

Operating System

Mac

Shopify CLI version (check your project's package.json if you're not sure)

3.49.4

Shell

No response

Node version (run node -v if you're not sure)

20.6.1

What language and version are you using in your application?

No response

@gonzaloriestra gonzaloriestra added the Type: Bug Something isn't working label Sep 29, 2023
@adamchipperfield
Copy link

Same here! I think this is a new bug.

@gonzaloriestra
Copy link
Contributor Author

gonzaloriestra commented Sep 29, 2023

As a workaround, you can run yarn add -W react@18.2.0 react-dom@18.2.0

Alternatively, it also works with NPM or PNPM, or with the Remix template.

@alvaro-shopify
Copy link
Contributor

This issue should be solved with the version 3.49.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants