-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
ts-loader doesnot pick up definitions from the typings field in package.json if the main field points to a .ts file #250
Comments
@blakeembrey I understand what you mean by the comment that we maynot need a typings field if the main is a .ts file. Like I said earlier, I was able to workaround this issue by exporting the definitions from the main .ts file which you can check in this branch. However TSC and IDE(Visual Studio) is able to resolve the definitions by just looking at the typings field in package.json whereas tsloader is not able to do the same. |
@bipinpoudyal Correct. Webpack will be resolving both type definition time ( |
@blakeembrey I came across this issue when trying to resolve a "related" issue. I can open a separate issue if you want, but I at least wanted to make some kind of report about this. I had a case where
I could not understand what was going on. I mean I'm not even sure if this is actually related to |
Was having this issue with version 2.x.x, it seems that it's gone in version 3.x.x. Perhaps we could close this issue? Could anyone else confirm that it's working with v3 for them as well? Thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
1 similar comment
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale. Please reopen if you'd like to work on this further. |
ts-loader is loading the typings if the main field points to a js file but if it points to a ts file, it doesnot load the typings folder. I have created a sample project with the recreation steps.
I tried compiling the same using tsc and it compiles properly without any issues.
Refer to #170 for a discussion on the same issue.
The text was updated successfully, but these errors were encountered: