Question regarding Cart transformer of Shopify Functions support for JavaScript in Shopify CLI

テックギーク運営者
Shopify Partner
27 3 8

I ran "shopify app generate extension" with Shopify CLI and selected "(4) Function - Cart transformer > JavaScript".

However, I received an error message that says "Extension 'cart_transform' is not available for vanilla-js".

 

ScreenShot 530.png

 

Does Cart transformer not support JavaScript?

And are there any plans to support it in the future?

 

What could be the reason for the error message, and is there any alternative way to achieve the same functionality in JavaScript?

Additionally, it would be helpful to know if there are any plans to add support for JavaScript in Cart transformer in the future.

Replies 2 (2)

sinanspd
Shopify Partner
2 0 1

I am having the same issue with typescript. This only seems to be available in Rust at the moment 

Nick_Wesselman
Shopify Staff
141 34 51

This one will be available in JavaScript and TypeScript soon, work is in progress. You can keep an eye on the Function Examples repo:
https://github.com/Shopify/function-examples

Nick Wesselman | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog