-
Notifications
You must be signed in to change notification settings - Fork 35
Bug: Build fails on new projects due to incompatibility with [email protected] #181
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
Comments
it suddenly occurs today even not yesterday from here, vue created projects have this problem, not only 9.28.0
|
The fix is pending release: typescript-eslint/typescript-eslint#11304 |
It will be released soon. |
Error
This issue affects all new Vue projects created with the standard scaffolding (
pnpm create vue@latest
) since the release of[email protected]
. It can also be reproduced on existing projects by updatingeslint
from9.28.0
to9.29.0
The default
eslint.config.ts
generated bycreate-vue
now fails during thevue-tsc --build
step with aTS2345
type error.Possible Cause
The API contract of
defineConfigWithVueTs
appears to be broken by the[email protected]
release. The function expects a very specific object shape, but helper functions from theeslint
package itself now return objects that no longer match that shape.Here's the commit that contains the changes to
FlatConfig
ineslint
: eslint/eslint@7ab77a2Reproducing the Bug
pnpm create vue@latest
pnpm i
. The latest version[email protected]
will be installed.pnpm build
.Error Log
Notes/Assumptions
I assume this is a type incompatibility between
eslint
and @typescript-eslint/utils.eslint-config-typescript/src/utilities.ts
Lines 17 to 24 in 0a6480d
Here,
ConfigItemWithExtendsAndVueSupport
depends onConfigItem
, which further depends onTSESLint.FlatConfig.Config
. Based on the error log, it appearsLanguageOptions
from@typescript-eslint/utils
requires changes.https://github.com/typescript-eslint/typescript-eslint/blob/de8943e98e188d83801ec1044ffc69451db1aa63/packages/utils/src/ts-eslint/Config.ts#L215-L252
The text was updated successfully, but these errors were encountered: