Skip to content

fix: add missing dependency#1011

Open
clemyan wants to merge 1 commit into
vuejs:mainfrom
clemyan:add-missing-dep
Open

fix: add missing dependency#1011
clemyan wants to merge 1 commit into
vuejs:mainfrom
clemyan:add-missing-dep

Conversation

@clemyan
Copy link
Copy Markdown

@clemyan clemyan commented May 11, 2026

Description

The eslint-plugin-vue has a peer dependency on vue-eslint-parser but the generated package.json does not list it as a dependency.

I have added the vue-eslint-parser as a devDependency in the template.

The `eslint-plugin-vue` has a peer dependency on `vue-eslint-parser` but
the generated `package.json` does not list it as a dependency
@clemyan clemyan force-pushed the add-missing-dep branch from da894c4 to 512cc9e Compare May 12, 2026 00:23
@skirtles-code
Copy link
Copy Markdown
Contributor

To provide a little more background on the underlying issue...

I believe this change is intended to fix linting with Yarn. I could reproduce the problem fairly readily with the latest Yarn (4.15.0) and a create-vue project that had linting enabled. I had to use yarn lint:eslint to run the linting, as yarn lint fails for unrelated reasons.

I posted a full reproduction here:

That reproduction is using workspaces, though they aren't needed to reproduce this issue with create-vue. I included workspaces because they were needed to reproduce a separate problem with Yarn and Vue DevTools.

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.

2 participants