-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
contextType path starts with "#" #7762
Comments
same problem |
I assume the only solution here is allowing to escape |
Can we please resolve this? It's getting in the way. :( Thank you |
enumValues same problem |
@productdevbook do you want to send a PR with a failing test case and a potential fix? |
I wanted to, but I couldn't find where it was. |
@dotansimha @saihaj i am send pr please check. |
Node supports subpath imports as long as the import begins with
#
. However, the way thatcontextType
works is by looking for an exported variable name after the#
That means if your context file is located in an aliased subpath, ie
"#api/src/context#Context"
, the generated types will have an import which cannot be resolved.Suggestion: Consider using a different character, since Node has already claimed
#
in import pathsThe text was updated successfully, but these errors were encountered: