@Jeremy The v4 Programming Model requires you to set the entry point by setting the main
property in your package.json
file.
When working with es modules, since your files are renamed to *.mjs
you need to update the value for main
in package.json
to it as well.
The default value for main
in package.json
for JavaScript functions is src/functions/*.js
which needs to be changes to src/functions/*.mjs
to get it to work with es modules.