ApiGee node app upload not recognizing javascript arrow function notation.

Not applicable

Hi,

The apigeetool for deploying a node app is not able to compile javascript arrow notation. Is there a fix for this?

Thanks in advance!

5483-compilation-error.png

Solved Solved
1 3 181
1 ACCEPTED SOLUTION

Not applicable

I found my answer in the docs: http://docs.apigee.com/api-services/content/understanding-edge-support-nodejs-modules

There it states: Modules that depend on EcmaScript 6 features, such as Promises and Generators, are not supported.

View solution in original post

3 REPLIES 3

Not applicable

I found my answer in the docs: http://docs.apigee.com/api-services/content/understanding-edge-support-nodejs-modules

There it states: Modules that depend on EcmaScript 6 features, such as Promises and Generators, are not supported.

Glad your issue is resolved @Ryan Storm & Thank you for sharing same with others. I am sure it's helpful for others who see similar issue.

@Anil Sagar Actually after more digging, we can use Promises as an installed package and it should work such as using Bluebird. It is the native Ecmascript 6 promises that are not supported. See here:

https://community.apigee.com/questions/26703/unable-to-recognize-node-modules.html