You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I have been adding support for containerized functions projects/apps to the VSCode Azure Functions extension and have been having issues with the typescript containerized function project.
I am using this command to create the project: func init --worker-runtime node --language typescript --docker
And when I go to build the image using ACR it fails everytime with the same error. Here are some relevant logs that hopefully should help:
Step 4/4 : RUN cd /home/site/wwwroot && npm install && npm run build
2024-03-04 09:11:47.695 [info] ---> Running in dbe4ec32e172
2024-03-04 09:11:47.696 [info]
2024-03-04 09:11:47.697 [info] up to date, audited 49 packages in 411ms
2024-03-04 09:11:47.697 [info]
2024-03-04 09:11:47.697 [info] 14 packages are looking for funding
2024-03-04 09:11:47.697 [info] run npm fund for details
2024-03-04 09:11:47.698 [info]
2024-03-04 09:11:47.698 [info] found 0 vulnerabilities
2024-03-04 09:11:47.698 [info] [91mnpm notice[0m[91m
2024-03-04 09:11:47.699 [info] npm notice New minor version of npm available! 10.2.4 -> 10.5.0
2024-03-04 09:11:47.699 [info] npm[0m[91m [0m[91mnotice Changelog: https://github.com/npm/cli/releases/tag/v10.5.0
2024-03-04 09:11:47.700 [info] [0m[91mnpm notice Run npm install -g [email protected] to update!
2024-03-04 09:11:47.700 [info] npm [0m[91mnotice[0m[91m
2024-03-04 09:11:47.701 [info] [0m
2024-03-04 09:11:47.701 [info] > [email protected] build
2024-03-04 09:11:47.702 [info] > tsc
2024-03-04 09:11:47.702 [info]
2024-03-04 09:11:47.703 [info] [91msh: 1: tsc: Permission denied
2024-03-04 09:11:47.703 [info] [0mThe command '/bin/sh -c cd /home/site/wwwroot && npm install && npm run build' returned a non-zero code: 126
2024-03-04 09:11:47.703 [info] 2024/03/04 17:11:47 Container failed during run: build. No retries remaining.
2024-03-04 09:11:47.703 [info] failed to run step ID: build: exit status 126
2024-03-04 09:11:47.704 [info]
2024-03-04 09:11:47.704 [info] Run ID: ca7a failed after 30s. Error: failed during run, err: exit status 1
You all can also test this using the Docker extension within VSCode with the Build Image in Azure... command.
The text was updated successfully, but these errors were encountered:
Hello! I have been adding support for containerized functions projects/apps to the VSCode Azure Functions extension and have been having issues with the typescript containerized function project.
I am using this command to create the project:
func init --worker-runtime node --language typescript --docker
And when I go to build the image using ACR it fails everytime with the same error. Here are some relevant logs that hopefully should help:
Step 4/4 : RUN cd /home/site/wwwroot && npm install && npm run build
2024-03-04 09:11:47.695 [info] ---> Running in dbe4ec32e172
2024-03-04 09:11:47.696 [info]
2024-03-04 09:11:47.697 [info] up to date, audited 49 packages in 411ms
2024-03-04 09:11:47.697 [info]
2024-03-04 09:11:47.697 [info] 14 packages are looking for funding
2024-03-04 09:11:47.697 [info] run
npm fund
for details2024-03-04 09:11:47.698 [info]
2024-03-04 09:11:47.698 [info] found 0 vulnerabilities
2024-03-04 09:11:47.698 [info] [91mnpm notice[0m[91m
2024-03-04 09:11:47.699 [info] npm notice New minor version of npm available! 10.2.4 -> 10.5.0
2024-03-04 09:11:47.699 [info] npm[0m[91m [0m[91mnotice Changelog: https://github.com/npm/cli/releases/tag/v10.5.0
2024-03-04 09:11:47.700 [info] [0m[91mnpm notice Run
npm install -g [email protected]
to update!2024-03-04 09:11:47.700 [info] npm [0m[91mnotice[0m[91m
2024-03-04 09:11:47.701 [info] [0m
2024-03-04 09:11:47.701 [info] > [email protected] build
2024-03-04 09:11:47.702 [info] > tsc
2024-03-04 09:11:47.702 [info]
2024-03-04 09:11:47.703 [info] [91msh: 1: tsc: Permission denied
2024-03-04 09:11:47.703 [info] [0mThe command '/bin/sh -c cd /home/site/wwwroot && npm install && npm run build' returned a non-zero code: 126
2024-03-04 09:11:47.703 [info] 2024/03/04 17:11:47 Container failed during run: build. No retries remaining.
2024-03-04 09:11:47.703 [info] failed to run step ID: build: exit status 126
2024-03-04 09:11:47.704 [info]
2024-03-04 09:11:47.704 [info] Run ID: ca7a failed after 30s. Error: failed during run, err: exit status 1
You all can also test this using the Docker extension within VSCode with the
Build Image in Azure...
command.The text was updated successfully, but these errors were encountered: