serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
266 stars 162 forks source link

Couldn't deploy to azure #609

Open networkandcode opened 2 years ago

networkandcode commented 2 years ago

This is a Bug Report

Description

I am trying to deploy serverless functions on azure but keep getting this error. I have installed serverless wth npm i serverless -g and the plugin with npm i serverless-azure-functions --save

$ serverless deploy --stage sand --config serverless-azure.yml
Environment: linux, node 18.6.0, framework 3.21.0, plugin 6.2.2, SDK 4.3.2
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
TypeError [ERR_INVALID_MODULE_SPECIFIER]: Invalid module "file:///home/<user-id>/notifications/node_modules/@azure/arm-appservice/node_modules/uuid/dist/index.js" must not include encoded "/" or "\" characters
    at new NodeError (node:internal/errors:387:5)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:964:11)