Hi, I’m trying to deploy to AWS Lambda using the command: “jovo deploy:code serverless” and I get “Could not resolve “vscode” error” at various locations in the node_modules folder.
Example:
› X [ERROR] Could not resolve “vscode”
›
› node_modules/@alexa/acdl/dist/cjs/extension.js:30:27:
› 30 │ const vscode = require(“vscode”);
› ╵ ~~~~~~~~
›
› You can mark the path “vscode” as external to exclude it from the bundle, which will remove this error. You can also surround this “require” call with a try/catch block to handle this failure at run-time instead of bundle-time.
› X [ERROR] Could not resolve “vscode”
›
› node_modules/vscode-languageclient/lib/node/main.js:22:25:
› 22 │ const vscode_1 = require(“vscode”);
› ╵ ~~~~~~~~
›
› You can mark the path “vscode” as external to exclude it from the bundle, which will remove this error. You can also surround this “require” call with a try/catch block to handle this failure at run-time instead of bundle-time.
I used “jovo build:serverless” to build the serverless.yaml file.
Any help is appreciated.
Thanks