Skip to content
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

fix(typescript-build): wrong path for dependency #464

Merged
merged 1 commit into from Jan 17, 2021
Merged

fix(typescript-build): wrong path for dependency #464

merged 1 commit into from Jan 17, 2021

Conversation

IGassmann
Copy link
Contributor

By using the Nuxt's resolver, it was resolving to whatever version of the package fork-ts-checker-webpack-plugin npm or yarn would find. That happened because @nuxt/core (the package where the Nuxt's resolver is located) doesn't have fork-ts-checker-webpack-plugin as a declared dependency. The version installed by @nuxt/typescript-build wouldn't always be used if for instance another version of the dependency is also installed on the project.

This fixes #145.

By using the Nuxt's resolver, it was resolving to whatever version of the package `fork-ts-checker-webpack-plugin` npm or yarn would find. That happened because `@nuxt/core` (the package where the Nuxt's resolver is located) doesn't have `fork-ts-checker-webpack-plugin` as a declared dependency. The version installed by `@nuxt/typescript-build` wouldn't always be used if for instance another version of the dependency is also installed on the project.

This fixes #145.
@IGassmann
Copy link
Contributor Author

IGassmann commented Nov 25, 2020

Here's a reproduction of the issue #145 where the fix can be tested: https://github.com/IGassmann/nuxt-typescript-issue-145

@kevinmarrec
Copy link
Contributor

@IGassmann Thank for the PR, but I'm afraid it could lead to new issues to not using the Nuxt Resolver, @pi0 would you have a little clue about this change ?

@pi0
Copy link
Member

pi0 commented Jan 17, 2021

Directly resolving by module makes sense specially if there are known issues of version incompatibility (#145).

@pi0 pi0 merged commit b300e6a into nuxt:master Jan 17, 2021
Geminii pushed a commit to Geminii/typescript that referenced this pull request Jan 20, 2021
@IGassmann IGassmann deleted the patch-1 branch February 5, 2021 23:49
This was referenced Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

using @nuxt/typescript-build causes dead loop (npm only)
3 participants