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

The newly-added line which sets ENV['ORIGINAL_ENV'] is breaking things #367

Open
ctrevorrow opened this issue Apr 8, 2022 · 0 comments
Open

Comments

@ctrevorrow
Copy link

ENV['ORIGINAL_ENV']=ENV.to_h.to_json

After upgrading to v2.15.3, I ran Shopify Theme Serve and received this error: /usr/local/bin/shopify:2:in `<main>': undefined method `to_json' for {"PATH"=>"/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin", [...omitted...], "_"=>"/usr/local/bin/shopify"}:Hash (NoMethodError)

The line ENV['ORIGINAL_ENV']=ENV.to_h.to_json seems to be what's causing the issue. This line is not present in v2.15.2, which works correctly.

I am using an Apple M1 Pro-based MacBook. I am noting this in case the issue is specific to the architecture. I've not tested it on Intel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant