Skip to content

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.
@haoqunjiang
Copy link
Member

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

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