-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error on TS type packages #83
Comments
I'm getting
If I add I'm on |
@adlerfaulkner A workaround for such broken packages is being worked in here: #95 |
When importing from packages without
main
entrypoint, such as TS types packages like@rdfjs/types
, then the generator will fail with an error:Cannot find module @rdfjs/types
This is because the
require.resolve
logic depends on thismain
entrypoint.We might have to dive into the codebase of
tsc
to see how they resolve this problem there.But likely, we'll have to reimplement (parts of)
require.resolve
ourselves to be able to cope with these kinds of resolutions.The text was updated successfully, but these errors were encountered: