Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM script dev:napi does not run in devcontainer from the command line #142

Open
davidwesst opened this issue Mar 5, 2022 · 0 comments
Open
Labels
2wr-app bug Something isn't working hackathon

Comments

@davidwesst
Copy link
Collaborator

With a fresh container, functions application doesn't work from 2wr-app NPM script dev:napi throws the exception (see below), likely due to the path not being Linux compatible.

Potential Solution: Setup a node script file that runs in the node environment so that it doesn't matter if the NPM script is being run on Windows or Linux.

Unhandled exception. System.AggregateException: One or more errors occurred. ("/workspaces/TwoWeekReady/2wr-app/..apiTwoWeeksReady\" doesn't exist.)
 ---> Azure.Functions.Cli.Common.CliException: "/workspaces/TwoWeekReady/2wr-app/..apiTwoWeeksReady\" doesn't exist.
   at Azure.Functions.Cli.ConsoleApp.UpdateCurrentDirectory(String[] args) in D:\a\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 409
   at Azure.Functions.Cli.ConsoleApp..ctor(String[] args, Assembly assembly, IContainer container) in D:\a\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 203
   at Azure.Functions.Cli.ConsoleApp.RunAsync[T](String[] args, IContainer container) in D:\a\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 49
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Azure.Functions.Cli.ConsoleApp.Run[T](String[] args, IContainer container) in D:\a\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 36
   at Azure.Functions.Cli.Program.Main(String[] args) in D:\a\1\s\src\Azure.Functions.Cli\Program.cs:line 21
@davidwesst davidwesst added bug Something isn't working 2wr-app labels Mar 5, 2022
@davidwesst davidwesst self-assigned this Mar 5, 2022
@davidwesst davidwesst removed their assignment Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2wr-app bug Something isn't working hackathon
Projects
None yet
Development

No branches or pull requests

1 participant