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

missing @babel/types (fix: #5625, #6891, #8917) #10533

Closed
wants to merge 1 commit into from

Conversation

mcenkar
Copy link

@mcenkar mcenkar commented Mar 15, 2024

fixes: #5625, #6891, #8917

Moved @babel/types from dev dependencies to normal dependencies. In this case npm will correctly resolve dependency under configurations described in related issues.

Reproduction of issue in: #8917

fixes: vuejs#5625, vuejs#6891, vuejs#8917

Moved @babel/types from dev dependencies to normal dependencies. In this case
npm will correctly resolve dependency under configurations described in related
issues.
@sodatea
Copy link
Member

sodatea commented Mar 18, 2024

As mentioned in #6891 (comment), this is by design.
It was moved in a42a14d

This is because @babel/types is a big dependency that most users do not need, unless they are developing something that needs to be type-checked against these AST types.
In that sense, @babel/types should be a direct dev dependency for that kind of projects. It doesn't have to be consumed indirectly from the vue package.

By the way, we recommend and expect most users to turn on skipLibCheck by default. See the reasoning at vuejs/vue-cli#5688

@sodatea sodatea closed this Mar 18, 2024
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.

Cannot find module '@babel/types' or its corresponding type declarations
2 participants