What is the configuration requirements to use import instead of require?
I'm using function runtime v2. I tried upgrading node to v10.12.0 but still get this error when it hits the imports Worker was unable to load function store: 'SyntaxError: Unexpected token {'
I have node version set to 10.12.0 in local.settings and in package.json. my function is setup like this ...
module.exports = async function(context, queueMessage) {
import { cosmos } from "@azure/cosmos";
import { updateChat } from "./channels/chat/newChatMessage";
import { updateAttributeStatus } from
"./channels/attribute/updateAttributeStatus";
import { documentRequest } from "./channels/document/documentRequest";
...
Which version of node is supported by Azure Functions and is import supported? If so, how do I set it up?
Thanks, Donnie