JS/TS unavailable for the product_discounts (Product Discounts API) function extension type

JavaScript and TypeScript are supposed be available here according to this workshop, but apparently not here, any idea why?

https://workshops.shopify.dev/workshops/javascript-functions-preview#3

Hi @yojisekiya

Be sure you are on the latest version of the CLI, and that you have exported the following environment variable.

export SHOPIFY_CLI_FUNCTIONS_JAVASCRIPT=1

Thank you @Nick_Wesselman for your feedback!

I exported the environmental variable and updated the CLI to the latest version, but it didn’t resolve this.

Anything else you might think of that might be causing this?

Hi @yojisekiya – Not sure, but that workshop is irrelevant now that we have released a deployable dev preview of JS and TS. You can read more here and try one of the tutorials that supports JS:

https://shopify.dev/docs/api/release-notes/developer-previews#javascript-support-for-shopify-functions