-
Notifications
You must be signed in to change notification settings - Fork 29
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
Uncaught Error: EvalError: Code generation from strings disallowed for this context #6
Comments
Hi @tylerscave thanks for flagging this issue,
Any reproduction steps you can provide will help us fix this sooner |
I've experienced it in version 2.0.2 and in the latest (2.0.9) The error only happens when deploying, but the warnings for To reproduce this, I think all that would be needed is to connect the Some docs for deploying with Oxygen can be found here: https://shopify.dev/custom-storefronts/oxygen/getting-started Thanks for any help on this 🙏 |
I'm still investigating the root cause of this issue but it looks like it was introduced in 2.0.9 of the sdk, as a workaround please use the
|
@teleaziz I downgraded to 2.0.7 and am still having the same issue... I also pulled down a fresh copy of what is currently in this repo and tried to build locally, and am seeing the same |
@tylerscave strange, afaict that warning should not block the build and deployment, I was able to build and deploy successfully by cloning the code on this repo, you can see it running here |
@tylerscave this warning will be addressed along with the build error in the next release of the sdk |
For more context:
|
@teleaziz Happy to hear that the template can be deployed with Oxygen (I can't access the running demo because I think its set to private btw)... I will mess with some of my package versions in order to try to replicate what is happening in the template. Also, I noticed you guys added a Also, thanks for the context on the eval errors, and we will be anxiously awaiting the next release 👍. Lastly, if possible, can you please upload your Oxygen deployment workflow (maybe Im missing something there) 🙏 |
Just a quick update FWIW
I'm baffled about how you were successfully able to deploy with the |
I was experiencing the same error message when deploying to Vercel. Dropping back to Correction: This just trades one issue for another. With v2.0.8, running into other errors. Dropping back further to v2.0.7 seems to work, but still throws some non-blocking exceptions in the console. |
thanks for reporting all - @teleaziz is actively investigating, will report back shortly |
Hi all, thanks for your patience, we released a new patch version of the SDK @tylerscave oh I realized now that preview links are private on hydrogen, apologies, this is a public link Also for q on the |
@tylerscave the code is pushed here: |
a couple additional updates
|
Yay, deployment worked and so far the Builder content looks great!!! 🎉🥳 @teleaziz thank you so much for your work on this and for the quick turnaround! |
I am attempting to deploy our project through Shopify Oxygen with GitHub Actions and am getting the following error from the
@builder.io/react
package due to the use ofeval
...Uncaught Error: EvalError: Code generation from strings disallowed for this context
Here is the full error for completeness:
The text was updated successfully, but these errors were encountered: