Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
391 stars 117 forks source link

[Bug]: Admin extensions target environment #4147

Open aurelienbobenrieth opened 1 month ago

aurelienbobenrieth commented 1 month ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Extension

Expected behavior

When developing extensions (admin extensions in this case) I am using React + Typescript.

I am using @effect to improve my DX + code quality. @effect/schema` is using Big integer literals.

However I cannot dev nor deploy the extension because admin extensions are targetting es2015 environment.

I have many questions:

Actual behavior

The bundle fails preventing me from using @effect/schema.

Verbose output

X [ERROR] Big integer literals are not available in the configured target environment ("es2015")

Reproduction steps

  1. Add native Big Integer to your admin extension without polyfill.
  2. Try to dev or deploy

Operating System

Windows 11

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

3.63.1

Shell

No response

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

v22.3.0

What language and version are you using in your application?

Node v22.3.0, Typescript 5.5.2

isaacroldan commented 3 weeks ago

Hey @aurelienbobenrieth, we are looking into this, i'll update the issue once we have more info 👌