unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
6.03k stars 498 forks source link

Experimental Cloudflare Pages Preset Error: configured target environment ("es5") is not supported #471

Closed daver987 closed 5 months ago

daver987 commented 2 years ago

Environment

node v16.17.0 (npm v8.15.0) Deployed to Cloudflare Pages via Github Set Nitro Preset to cloudflare_pages Nuxt3-RC.10 (Had the same issue with RC.9)

Reproduction

https://github.com/daver987/quote-pricing-form.git

Describe the bug

Cloudflare will download the project, just before deployment it gets this error and loops it over and over literally thousands of times until after about 5mb of logs it times out.

✘ [ERROR] Transforming const to the configured target environment ("es5") is not supported yet

11:47:47.164 |   11:47:47.164 | ../../../buildhome/repo/functions/[[path]].js:1:4361: 11:47:47.164 | 1 │ ...mock");proxy.exports=_default;const https=getDefaultExportFromCj... 11:47:47.165 | ╵ ~ 11:47:47.165 |   11:47:47.165 | The target environment was set to "es5" here: 11:47:47.166 |   11:47:47.166 | ../../../buildhome/repo/tsconfig.json:4:14: 11:47:47.166 | 4 │ "target": "es5", 11:47:47.166 | ╵ ~

Additional context

No response

Logs

Cloning repository...
11:46:19.421    From https://github.com/daver987/quote-pricing-form
11:46:19.422     * branch            5ae899e64ed1a70088af42486e854aca9cfa58dc -> FETCH_HEAD
11:46:19.422    
11:46:19.479    HEAD is now at 5ae899e Add: Configuration for cloudflare pages
11:46:19.480    
11:46:19.636    
11:46:19.665    Success: Finished cloning repository files
11:46:20.345    Installing dependencies
11:46:20.358    Python version set to 2.7
11:46:24.014    Downloading and installing node v16.17.0...
11:46:24.451    Downloading https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.xz...
11:46:25.024    Computing checksum with sha256sum
11:46:25.163    Checksums matched!
11:46:29.764    Now using node v16.17.0 (npm v8.15.0)
11:46:30.213    Started restoring cached build plugins
11:46:30.228    Finished restoring cached build plugins
11:46:30.767    Attempting ruby version 2.7.1, read from environment
11:46:34.680    Using ruby version 2.7.1
11:46:35.057    Using PHP version 5.6
11:46:35.230    5.2 is already installed.
11:46:35.259    Using Swift version 5.2
11:46:35.260    Started restoring cached node modules
11:46:35.277    Finished restoring cached node modules
11:46:35.286    Started restoring cached yarn cache
11:46:35.301    Finished restoring cached yarn cache
11:46:35.323    Installing yarn at version 1.22.4
11:46:35.342    Installing Yarn!
11:46:35.342    > Downloading tarball...
11:46:35.388    
11:46:35.388    [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.re8zcsSV4s
11:46:35.389      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
11:46:35.390                                     Dload  Upload   Total   Spent    Left  Speed
11:46:35.632    
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    79  100    79    0     0    324      0 --:--:-- --:--:-- --:--:--   325
11:46:35.874    
100    92  100    92    0     0    189      0 --:--:-- --:--:-- --:--:--   189
11:46:36.053    
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
11:46:36.365    
100 1215k  100 1215k    0     0  1244k      0 --:--:-- --:--:-- --:--:-- 1244k
11:46:36.366    
11:46:36.366    [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.re8zcsSV4s.asc
11:46:36.415    
100    83  100    83    0     0   1707      0 --:--:-- --:--:-- --:--:--  1707
11:46:36.439    
100    96  100    96    0     0   1331      0 --:--:-- --:--:-- --:--:--  1331
11:46:36.629    
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
11:46:36.708    
100  1028  100  1028    0     0   3014      0 --:--:-- --:--:-- --:--:--  3014
11:46:36.758    > Verifying integrity...
11:46:36.804    gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
11:46:36.810    gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
11:46:36.813    gpg: Note: This key has expired!
11:46:36.813    Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
11:46:36.813         Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
11:46:36.814    > GPG signature looks good
11:46:36.814    > Extracting to ~/.yarn...
11:46:36.942    > Adding to $PATH...
11:46:36.969    > We've added the following to your /opt/buildhome/.bashrc
11:46:36.969    > If this isn't the profile of your current shell then please add the following to your correct profile:
11:46:36.970       
11:46:36.970    export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
11:46:36.971    
11:46:37.381    > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
11:46:37.795    Installing NPM modules using Yarn version 1.22.4
11:46:38.317    npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
11:46:38.317    npm WARN config location in the cache, and they are managed by
11:46:38.320    npm WARN config     [`cacache`](http://npm.im/cacache).
11:46:38.581    yarn install v1.22.4
11:46:38.657    [1/4] Resolving packages...
11:46:38.958    [2/4] Fetching packages...
11:46:55.866    info fsevents@2.3.2: The platform "linux" is incompatible with this module.
11:46:55.866    info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.870    info @esbuild/linux-loong64@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.871    info "@esbuild/linux-loong64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.871    info esbuild-android-64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.871    info "esbuild-android-64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.871    info esbuild-android-arm64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.871    info "esbuild-android-arm64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.871    info esbuild-android-arm64@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.871    info esbuild-darwin-64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.872    info "esbuild-darwin-64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.872    info esbuild-darwin-arm64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.872    info "esbuild-darwin-arm64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.872    info esbuild-darwin-arm64@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.872    info esbuild-freebsd-64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.872    info "esbuild-freebsd-64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.872    info esbuild-freebsd-arm64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.872    info "esbuild-freebsd-arm64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.873    info esbuild-freebsd-arm64@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.873    info esbuild-linux-32@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.873    info "esbuild-linux-32@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.873    info esbuild-linux-arm@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.873    info "esbuild-linux-arm@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.873    info esbuild-linux-arm64@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.873    info "esbuild-linux-arm64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.873    info esbuild-linux-mips64le@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.873    info "esbuild-linux-mips64le@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.874    info esbuild-linux-ppc64le@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.874    info "esbuild-linux-ppc64le@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.875    info esbuild-linux-riscv64@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.875    info "esbuild-linux-riscv64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.875    info esbuild-linux-s390x@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.875    info "esbuild-linux-s390x@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.875    info esbuild-netbsd-64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.875    info "esbuild-netbsd-64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.876    info esbuild-openbsd-64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.876    info "esbuild-openbsd-64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.876    info esbuild-sunos-64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.876    info "esbuild-sunos-64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.876    info esbuild-windows-32@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.878    info "esbuild-windows-32@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.878    info esbuild-windows-32@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.878    info esbuild-windows-64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.879    info "esbuild-windows-64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.879    info esbuild-windows-arm64@0.15.7: The platform "linux" is incompatible with this module.
11:46:55.880    info "esbuild-windows-arm64@0.15.7" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.880    info esbuild-windows-arm64@0.15.7: The CPU architecture "x64" is incompatible with this module.
11:46:55.881    warning vscode-languageclient@7.0.0: The engine "vscode" appears to be invalid.
11:46:55.881    info @esbuild/linux-loong64@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.881    info "@esbuild/linux-loong64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.882    info esbuild-android-64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.882    info "esbuild-android-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.882    info esbuild-android-arm64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.882    info "esbuild-android-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.882    info esbuild-android-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.882    info esbuild-darwin-64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.882    info "esbuild-darwin-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.882    info esbuild-darwin-arm64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.883    info "esbuild-darwin-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.883    info esbuild-darwin-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.883    info esbuild-freebsd-64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.883    info "esbuild-freebsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.883    info esbuild-freebsd-arm64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.883    info "esbuild-freebsd-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.883    info esbuild-freebsd-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.883    info esbuild-linux-32@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.883    info "esbuild-linux-32@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.884    info esbuild-linux-arm@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.884    info "esbuild-linux-arm@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.884    info esbuild-linux-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.884    info "esbuild-linux-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.884    info esbuild-linux-mips64le@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.884    info "esbuild-linux-mips64le@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.884    info esbuild-linux-ppc64le@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.884    info "esbuild-linux-ppc64le@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.884    info esbuild-linux-riscv64@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.885    info "esbuild-linux-riscv64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.885    info esbuild-linux-s390x@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.885    info "esbuild-linux-s390x@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.885    info esbuild-netbsd-64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.885    info "esbuild-netbsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.885    info esbuild-openbsd-64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.885    info "esbuild-openbsd-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.885    info esbuild-sunos-64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.885    info "esbuild-sunos-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.886    info esbuild-windows-32@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.886    info "esbuild-windows-32@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.886    info esbuild-windows-32@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.886    info esbuild-windows-64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.886    info "esbuild-windows-64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.886    info esbuild-windows-arm64@0.14.54: The platform "linux" is incompatible with this module.
11:46:55.886    info "esbuild-windows-arm64@0.14.54" is an optional dependency and failed compatibility check. Excluding it from installation.
11:46:55.886    info esbuild-windows-arm64@0.14.54: The CPU architecture "x64" is incompatible with this module.
11:46:55.889    [3/4] Linking dependencies...
11:46:55.890    warning " > @gtm-support/vue-gtm@1.6.0" has unmet peer dependency "vue@^3.0.0".
11:46:55.890    warning "@gtm-support/vue-gtm > vue-router@4.1.5" has unmet peer dependency "vue@^3.2.0".
11:46:55.892    warning "@nuxtjs/tailwindcss > @nuxt/postcss8 > css-loader@5.2.7" has unmet peer dependency "webpack@^4.27.0 || ^5.0.0".
11:46:55.892    warning "@nuxtjs/tailwindcss > @nuxt/postcss8 > postcss-loader@4.3.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
11:46:55.894    warning "@pinia/nuxt > pinia@2.0.21" has unmet peer dependency "vue@^2.6.14 || ^3.2.0".
11:46:55.895    warning "@vueuse/math > vue-demi@0.13.11" has unmet peer dependency "vue@^3.0.0-0 || ^2.6.0".
11:46:55.895    warning " > @tailwindcss/forms@0.5.3" has unmet peer dependency "tailwindcss@>=3.0.0 || >= 3.0.0-alpha.1".
11:46:55.898    warning " > nuxt-quasar-vite@1.0.6" has incorrect peer dependency "sass@1.32.0".
11:46:55.899    warning " > vue3-q-tel-input@1.0.21" has unmet peer dependency "vue@^3.0.5".
11:47:05.026    [4/4] Building fresh packages...
11:47:05.482    success Saved lockfile.
11:47:05.488    Done in 26.91s.
11:47:05.522    NPM modules installed using Yarn
11:47:05.827    Installing Hugo 0.54.0
11:47:06.524    Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
11:47:06.529    Started restoring cached go cache
11:47:06.552    Finished restoring cached go cache
11:47:06.730    go version go1.14.4 linux/amd64
11:47:06.753    go version go1.14.4 linux/amd64
11:47:06.758    Installing missing commands
11:47:06.758    Verify run directory
11:47:06.758    Executing user command: yarn build
11:47:07.016    yarn run v1.22.4
11:47:07.051    $ NITRO_PRESET=cloudflare_pages npx nuxi build
11:47:07.614    npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
11:47:07.615    npm WARN config location in the cache, and they are managed by
11:47:07.615    npm WARN config     [`cacache`](http://npm.im/cacache).
11:47:07.615    npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
11:47:07.615    npm WARN config location in the cache, and they are managed by
11:47:07.615    npm WARN config     [`cacache`](http://npm.im/cacache).
11:47:07.859    Nuxi 3.0.0-rc.10-27704658.ac56ce7
11:47:07.876    Nuxt 3.0.0-rc.10-27704658.ac56ce7 with Nitro 0.5.1-27703614.1f4201e
11:47:15.847    
11:47:15.847     WARN  autoImports:extend hook is deprecated. Use addImports() from @nuxt/kit or imports:extend with nuxt>=3.0.0-rc.9.
11:47:15.847    
11:47:15.884    ℹ Using default Tailwind CSS file from runtime/tailwind.css
11:47:15.890    
11:47:15.890     WARN  Module nuxt-quasar-vite is disabled due to incompatibility issues:
11:47:15.890     - [nuxt] Nuxt version `^3.0.0` is required but currently using `3.0.0-rc.10-27704658.ac56ce7`
11:47:15.890    
11:47:15.899    
11:47:15.899     WARN  autoImports:sources hook is deprecated. Use imports:sources with nuxt>=3.0.0-rc.9.
11:47:15.899    
11:47:21.525    
11:47:21.525     WARN  Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
11:47:21.526    
11:47:21.527    
11:47:21.528     WARN  Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification
11:47:21.528    
11:47:24.028    
11:47:24.028     WARN 
11:47:24.028    (!) Some chunks are larger than 500 KiB after minification. Consider:
11:47:24.028    - Using dynamic import() to code-split the application
11:47:24.028    - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks
11:47:24.028    - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
11:47:24.028    
11:47:24.029    ℹ Client built in 5984ms
11:47:24.037    ℹ Building server...
11:47:25.956    ✔ Server built in 1918ms
11:47:25.981    ✔ Generated public .output/public
11:47:26.002    start Building server...
11:47:35.776    start Writing server bundle...
11:47:46.022    ✔ Server built
11:47:46.140      └─ functions/path.js (1.74 MB) (487 kB gzip)
11:47:46.140    Σ Total size: 1.74 MB (487 kB gzip)
11:47:46.143    ✔ You can preview this build using npx wrangler pages dev .output/public
11:47:46.143    ✔ You can deploy this build using npx wrangler pages publish .output/public
11:47:46.236    Done in 39.23s.
11:47:46.249    Finished
11:47:46.858    🚧 'wrangler pages <command>' is a beta command. Please report any issues to https://github.com/cloudflare/wrangler2/issues/new/choose
11:47:47.127    ✘ [ERROR] Transforming const to the configured target environment ("es5") is not supported yet
11:47:47.127    
11:47:47.129        ../../../buildhome/repo/functions/[[path]].js:1:65:
11:47:47.129          1 │ ...r(var Qe=0;Qe<ze.length;Qe++){const Ge=ze[Qe];if("string"!=typeo...
11:47:47.129            ╵                                  ~~~~~
11:47:47.129    
11:47:47.130      The target environment was set to "es5" here:
11:47:47.131    
11:47:47.131        ../../../buildhome/repo/tsconfig.json:4:14:
11:47:47.131          4 │     "target": "es5",
11:47:47.132            ╵               ~~~~~
11:47:47.132    
11:47:47.132    ✘ [ERROR] Transforming const to the configured target environment ("es5") is not supported yet
11:47:47.132    
11:47:47.132        ../../../buildhome/repo/functions/[[path]].js:1:128:
11:47:47.133          1 │ ...of Ge&&!Array.isArray(Ge))for(const ze in Ge)if("default"!==ze&&...
11:47:47.133            ╵                                  ~~~~~
11:47:47.133    
11:47:47.133      The target environment was set to "es5" here:
11:47:47.133    
11:47:47.133        ../../../buildhome/repo/tsconfig.json:4:14:
11:47:47.134          4 │     "target": "es5",
11:47:47.140            ╵               ~~~~~
11:47:47.140    
11:47:47.140    ✘ [ERROR] Transforming const to the configured target environment ("es5") is not supported yet
11:47:47.140    
11:47:47.140        ../../../buildhome/repo/functions/[[path]].js:1:175:
11:47:47.140          1 │ ...("default"!==ze&&!(ze in He)){const Qe=Object.getOwnPropertyDesc...
11:47:47.141            ╵                                  ~~~~~
11:47:47.141    
11:47:47.141      The target environment was set to "es5" here:
11:47:47.141    
11:47:47.142        ../../../buildhome/repo/tsconfig.json:4:14:
11:47:47.142          4 │     "target": "es5",
11:47:47.142            ╵               ~~~~~
11:47:47.142    
11:47:47.142    ✘ [ERROR] Transforming const to the configured target environment ("es5") is not supported yet
11:47:47.142    
11:47:47.142        ../../../buildhome/repo/functions/[[path]].js:1:454:
11:47:47.143          1 │ ...l:"file:///_entry.js",env:{}};const process$1={};let cachedSetTi...
11:47:47.143            ╵                                  ~~~~~
11:47:47.143    
11:47:47.144      The target environment was set to "es5" here:
11:47:47.146    
11:47:47.146        ../../../buildhome/repo/tsconfig.json:4:14:
11:47:47.146          4 │     "target": "es5",
11:47:47.146            ╵               ~~~~~
11:47:47.147    
11:47:47.147    ✘ [ERROR] Transforming let to the configured target environment ("es5") is not supported yet
11:47:47.147    
11:47:47.147        ../../../buildhome/repo/functions/[[path]].js:1:473:
11:47:47.147          1 │ ...js",env:{}};const process$1={};let cachedSetTimeout,cachedClearT...
11:47:47.147            ╵                                   ~~~
11:47:47.147    
11:47:47.147      The target environment was set to "es5" here:
11:47:47.147    
11:47:47.148        ../../../buildhome/repo/tsconfig.json:4:14:
11:47:47.148          4 │     "target": "es5",
11:47:47.148            ╵               ~~~~~
11:47:47.148    
11:47:47.148    ✘ [ERROR] Transforming let to the configured target environment ("es5") is not supported yet
11:47:47.148    
11:47:47.148        ../../../buildhome/repo/functions/[[path]].js:1:1668:
11:47:47.148          1 │ ...imeout=defaultClearTimeout}}();let queue$2=[],draining=!1,curren...
11:47:47.148            ╵                                   ~~~
11:47:47.149    
11:47:47.149      The target environment was set to "es5" here:
11:47:47.149    
11:47:47.149        ../../../buildhome/repo/tsconfig.json:4:14:
11:47:47.149          4 │     "target": "es5",
11:47:47.149            ╵               ~~~~~
11:47:47.149    
11:47:47.149    ✘ [ERROR] Transforming let to the configured target environment ("es5") is not supported yet
11:47:47.149    
11:47:47.150        ../../../buildhome/repo/functions/[[path]].js:1:3052:
11:47:47.150          1 │ ...ss.binding is not supported")};let cwd="/";process$1.cwd=functio...
11:47:47.150            ╵                                   ~~~
11:47:47.150    
11:47:47.150      The target environment was set to "es5" here:
11:47:47.150    
11:47:47.150        ../../../buildhome/repo/tsconfig.json:4:14:
11:47:47.150          4 │     "target": "es5",
11:47:47.150            ╵               ~~~~~
11:47:47.151
pi0 commented 5 months ago

Closing since this issue had been stalled for a while. Please feel free to open a new issue with fresh reproduction if having similar issues 🙏🏼