Generate fails when app does not have .eslintrc.json #18377
Labels
outdated
scope: linter
Issues related to Eslint support in Nx
scope: react
Issues related to React support for Nx
type: bug
Current Behavior
Generating a new library using @nx/react within a workspace that has an app of nx/go backend and an app of nx/react frontend.
Generating a new nx react lib fails with
TypeError: Cannot read properties of undefined (reading 'eslintConfig')
Comes from this function in @nx/linter/src/generators/init/init-migration.js
able to solve by adding a .eslintrc.json file into apps/backend directory; however I think there should be some sort of check here as not all project's contain eslint if considering managing multiple languages in a monorepo.
Expected Behavior
Should generate the react lib without regard to whether go has a lint config
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: