angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
313 stars 56 forks source link

Cannot read property 'toString' of null #11

Closed draylegend closed 3 years ago

draylegend commented 4 years ago

Steps to reproduce:

Environment

manfredsteyer commented 4 years ago

Thanks for this info. Hm, do you have a tslint.json in your project's root? This is the only file which is modified by the ng add schematic.

BeaveArony commented 4 years ago

NX allows to generate an application with eslint as linter instead of tslint (which is the default). Choosing eslint will create the .eslintrc file. The ng add command should probably add the rules to this part as well:

{
  "rules": {
    "@typescript-eslint/explicit-member-accessibility": "off",
    "@typescript-eslint/explicit-function-return-type": "off",
    "@typescript-eslint/no-parameter-properties": "off",
    "@nrwl/nx/enforce-module-boundaries": [
      "error",
      {
        "enforceBuildableLibDependency": true,
        "allow": [],
        "depConstraints": [
          { "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
        ]
      }
    ]
  }
}
peterbsmyth commented 3 years ago

confirmed on new repositories that this is related to eslint.