Having trouble resolving typescript custom path mapping during execution #928
-
Our project makes use of typescript path mapping in order to add custom names to paths in our typescript project. With the following tsconfig.json file we are able to use
While this works great in VSCode or an IDE resolves these paths in the editor, the typescript team has mentioned that typescript will never convert this alias into its actual import path during runtime. For this reason you get the error When attempting to run
However, unlike running an app with node where I know the entry point and can call configuration code from tsconfig-path module to resolve these path mappings, I am unable to do so with nexus. This is because when using the Is there any way to work around this ? If not it would be great if nexus had support so that path mappings can be used in the project. Here are some ideas of possible solutions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @NicholasEllul we're interested in this too. We want the ideal solution, Nexus handling this. You can track the feature and contribute more thoughts at graphql-nexus/nexus#855. |
Beta Was this translation helpful? Give feedback.
Hey @NicholasEllul we're interested in this too. We want the ideal solution, Nexus handling this. You can track the feature and contribute more thoughts at graphql-nexus/nexus#855.