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]: React is not defined in newly scaffolded React Checkout UI Extension #587

Closed
2 tasks done
jamesvidler opened this issue Oct 5, 2022 · 1 comment
Closed
2 tasks done
Labels
Type: Bug Something isn't working

Comments

@jamesvidler
Copy link
Contributor

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?

Extension

Expected behavior

With a newly scaffolded/generated React/TypeScriptReact checkout ui extension, running yarn dev should allow you to preview your development store with the extension rendered without error.

Actual behavior

The extension does not render and you get the console error React is not defined.

Stack trace

No response

Reproduction steps

  1. Ensure you are running the Go version of the extension CLI.
  2. yarn create @shopify/app --template node
  3. cd <name-of-app>
  4. yarn generate extension, select "JavasScript React"
  5. yarn dev
  6. Click the checkout preview link for your extension.
  7. Open web developer tools and note the console error regarding React is not defined.

Operating System

Mac OS Montery

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

3.16.2

Shell

zsh

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

v18.7.0

What language and version are you using in your application?

No response

@jamesvidler jamesvidler added the Type: Bug Something isn't working label Oct 5, 2022
@jamesvidler
Copy link
Contributor Author

Related to this change #577.

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

1 participant