-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Help with Setup for Typescript Azure Functions #77
Comments
This depends on how you build the project. A framework/tool that has support for
Depending on the package, you may need to skip the path aliases during build time so that dependencies are treated as external. That's why I separated the build config from the development one (that your IDE would use). If you're publishing packages, then you most likely want to skip the aliases during the build. If, on the other hand, you're building apps/bundles you can use the aliases to compile all the dependencies. For your Azure example, if you're limited to using |
Thank you so much for that detailed answer, it was really helpful! 👍 tsconfig-paths together with webpack (as that was the easiest to setup) is working for me now. What I'm still struggling with though is getting I still have the following type aliases set up:
But I get |
@panmau you're missing the wildcard from the alias, it should be |
That was an easy fix, I somehow didn't see that last asterix. Thank you so much again! |
Goal
I want to use this template for setting up a monorepo with Azure Functions but I'm struggling to get it working how I want.
Problems
package/dist/file
package/src/file
orpackage/file
style importsI get the error:
'Error: Qualified path resolution failed - none of the candidates can be found on the disk.
According to issue Azure/azure-functions-core-tools#2 it seems that I need to use
tsconfig-paths
but I don't know how to do that as the azure functions core tools don't use ts-node.Questions
package/src/file
orpackage/file
working? Or does tsconfig-paths also work without ts-node?I hope someone can provide me some guidance here on possible ways to proceed! (it could be that this also isn't the right place to ask this)
Repro
I have made a minimal as possible repro here on a separate branch: https://github.com/ultimate-ttt/ttt-backends/tree/dev-mono-with-berry
To get it running you need:
yarn start
If you have any problems with getting it running, I can help here.
The text was updated successfully, but these errors were encountered: