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

generateCodegenSchemaFromJavaScript FAILED during build – Shopify Checkout Sheet Kit #160

Open
guramrit-cheema opened this issue Feb 18, 2025 · 3 comments
Labels
Bug Something isn't working

Comments

@guramrit-cheema
Copy link

What area is the issue related to?

Checkout Sheet Kit

What platform does the issue affect?

Android

What version of @shopify/checkout-sheet-kit are you using?

3.2.0

Do you have reproducible example code?

No response

Steps to Reproduce

I am encountering a build failure when trying to compile the shopify_checkout-sheet-kit library. The error is as follows:

Task :shopify_checkout-sheet-kit:generateCodegenSchemaFromJavaScript FAILED

Expected Behavior

The build fails with the error above.
Expected Behavior:
The build should complete successfully without errors.

Actual Behavior

The build fails at the generateCodegenSchemaFromJavaScript task.

Storefront domain

c

Screenshots/Videos/Log output

Image
@guramrit-cheema guramrit-cheema added Bug Something isn't working untriaged labels Feb 18, 2025
@kieran-osgood-shopify
Copy link
Contributor

Hi @guramrit-cheema

Can you confirm if you are trying to install to your own application, or run one of the samples?
What version of react native are you running, I see some similar issues for the error below unable to make progress running work

You may try performing a clean and rebuild:

  • rm -rf node_modules
  • cd android && ./gradlew clean
  • Reinstall your node modules (yarn, pnpm etc)
  • yarn start --reset-cache

Should that fail can you attach a full build log from logcat or the terminal, the screenshot only shows the top level error message, selecting the build fails should .

@guramrit-cheema
Copy link
Author

Hi,

Yes, I am using this library in my own application (not a sample project).
I am using React Native version 0.76.5.

I have already tried the following steps, but the issue persists:

Removed node_modules folder → rm -rf node_modules
Cleaned the Android build → cd android && ./gradlew clean
Reinstalled dependencies → yarn install
Cleared Metro bundler cache → yarn start --reset-cache

The build still fails with the following error during the task:
Task :shopify_checkout-sheet-kit:generateCodegenSchemaFromJavaScript FAILED

@kieran-osgood-shopify
Copy link
Contributor

I just tried installing on a freshly created project and couldn't replicate this issue

If you select the first line in the build output (see screenshot) and share the build log output - it will include stack trace

Image

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

No branches or pull requests

2 participants