Questions and discussions about using the Shopify CLI and Shopify-built libraries.
10:01:15 │ graphiql │ GraphiQL server started on port 3457 10:01:16 │ product-discount │ Building function product-discount... 10:01:16 │ product-discount │ Building GraphQL types... 10:01:17 │product-discoun │ (node:16525) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. 10:01:17 │ product-discount │ (Use `node --trace-deprecation ...` to show where the warning was created) 10:01:17 │ product-discount │ Bundling JS function... ╭─ error ───────────────────────────────────────────────────────────────────────╮ │ │ │ Build failed with 1 error: │ │ <stdin>:2:26: ERROR: Could not resolve "@shopify/shopify_function/run" │ │ │ │ To investigate the issue, examine this stack trace: │ │ at <stdin>:2:26: ERROR: Could not resolve " │ │ at failureErrorWithLog (../../../.nvm/versions/node/v21.7.3/lib/node_modu │ │ les/@shopify/cli/node_modules/esbuild/lib/main.js:1650) │ │ at (../../../.nvm/versions/node/v21.7.3/lib/node_modules/@shopify/cli/nod │ │ e_modules/esbuild/lib/main.js:1058) │ │ at (../../../.nvm/versions/node/v21.7.3/lib/node_modules/@shopify/cli/nod │ │ e_modules/esbuild/lib/main.js:1003) │ │ at buildResponseToResult (../../../.nvm/versions/node/v21.7.3/lib/node_mo │ │ dules/@shopify/cli/node_modules/esbuild/lib/main.js:1056) │ │ at (../../../.nvm/versions/node/v21.7.3/lib/node_modules/@shopify/cli/nod │ │ e_modules/esbuild/lib/main.js:1085) │ │ at <computed> (../../../.nvm/versions/node/v21.7.3/lib/node_modules/@shop │ │ ify/cli/node_modules/esbuild/lib/main.js:703) │ │ at handleIncomingPacket (../../../.nvm/versions/node/v21.7.3/lib/node_mod │ │ ules/@shopify/cli/node_modules/esbuild/lib/main.js:763) │ │ at readFromStdout (../../../.nvm/versions/node/v21.7.3/lib/node_modules/@ │ │ shopify/cli/node_modules/esbuild/lib/main.js:679) │ │ at emit (node:events:519) │ │ at emit (node:domain:488) │ │ │ ╰───────────────────────────────────────────────────────────────────────────────╯For the verbose error output and more information, see the GitHub issue I created for this.
Operating System: 2023 M2 MacOS Sonoma 14.5
Shopify CLI version: 3.51.0 and 3.61.0
Shell: zsh
Node version: v20.14.0 and v21.7.3
Ruby 3.1 and 3.3.2