Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@devinrader was having difficulties deploying a function within a subdirectory on Windows. Ultimately the error message was:
The issue was a function in
$PROJECT_DIR/functions/sms/reply.js
and the error was:With an amount of VSCode live share and messing around, changing this line from functions.ts:
to
got the deploy to work. The output still showed:
I stepped back to see where the path was coming from and I traced it back to
getPathAndAccessFromFileInfo
.upath
was already in the dependency tree, so I promoted it to direct dependency and usedtoUnix
to turn the eventual path of both functions and assets into something the API will understand.This was painful working through the issue with a windows machine an ocean and a continent away, so I am not 100% confident that this does now work for all machines. I recommend testing against deployments on Mac and Windows with functions and assets in subfolders to ensure this is now working cross platform.
Thoughts?
Contributing to Twilio