Closed the-ult closed 2 years ago
It's in discussion at the moment :) We'll provide more feedback when we know more
New Angular workspaces will be using standalone config and it's on our internal roadmap to address existing workspaces. I'll close this issue for now :)
Thanks for raising it!
Another thing which might be interesting to address as well is that sometimes errors occur, when running nx commands:
❯ nx cache clear
Unable to read workspace file '.../.../angular.json': Invalid format version detected - Expected:[ 1 ] Found: [ 2 ]
❯ nx lint
Unable to read workspace file '/.../.../angular.json': Invalid format version detected - Expected:[ 1 ] Found: [ 2 ]
❯ pnpm nx test
> .....
> nx "test"
Unable to read workspace file '/.../.../.../angular.json': Invalid format version detected - Expected:[ 1 ] Found: [ 2 ]
ELIFECYCLE Command failed with exit code 1.
@the-ult experiencing the same. Any known solutions?
No, not yet
It worked for me... Should be added to the nx.json
file:
"generators": {
"@nrwl/angular:application": {
"style": "scss",
"linter": "eslint",
"unitTestRunner": "jest",
"e2eTestRunner": "cypress"
},
"@nrwl/angular:library": {
"linter": "eslint",
"unitTestRunner": "jest",
"standaloneConfig": true,
"setParserOptionsProject": true
},
"@nrwl/angular:component": {
"style": "scss"
}
},
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Description
It would be nice if the recommended
standaloneConfig
would be enabled by default when runningnpx create-nx-workspace
Or add it as an options/configuration e.g.npx create-nx-workspace --standalone-config
or/and as part of the questionsSet default configuration
After running
nx g @nrwl/workspace:convert-to-nx-project --all
newly created apps/libs do not have a standaloneConfig by default. It would be nice if these would be set as default in thenx.json
With Angular update
angular.json
version numberWhen running the convert command you will get the error:
It would be nice if the version number would automatically be updated to
2
, instead of throwing an errorRelated