You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NX Failed to process project graph.
An error occurred while processing files for the @nx/eslint/plugin plugin (Defined at nx.json#plugins[1])
.
- apps/nuxt-app/eslint.config.mjs: Failed to load plugin '@typescript-eslint' declared in' » @nuxt/eslint-config': Cannot find module '@typescript-eslint/eslint-plugin'
Require stack:
- E:\apps\nuxt-test\apps\nuxt-app\__placeholder__.js
Referenced from: E:\apps\nuxt-test\node_modules\@nuxt\eslint-config\dist\legacy.cjs
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
From my investigation, the issue maybe from @nuxt/eslint-config package. According to Nuxt documentation, @nuxtjs/eslint-config is for legacy setup in eslint, while @nuxt/eslint-config (current package version) use for exports a helper function to generate the configuration:
Current Behavior
When running any command in the Nx workspace after setting up Nuxt with @nx/nuxt, an error occurs related to the ESLint plugin configuration.
Specifically, the @nx/eslint/plugin fails when processing the ESLint config that uses @nuxt/eslint-config with FlatConfig.
This appears to be due to how @nx/eslint/plugin loads and interprets FlatConfig-based ESLint setups that use Nuxt presets.
Expected Behavior
The Nx workspace should successfully process the ESLint configuration when setting up a new Nx workspace
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
From my investigation, the issue maybe from @nuxt/eslint-config package. According to Nuxt documentation, @nuxtjs/eslint-config is for legacy setup in eslint, while @nuxt/eslint-config (current package version) use for exports a helper function to generate the configuration:
https://eslint.nuxt.com/packages/config
From Starter Template, In Nuxt's ESLint config using:
After commenting out that line, ESLint started working correctly again in the Nx workspace
The text was updated successfully, but these errors were encountered: