Error "'style' is not found in schema" when generating an Angular library module
See original GitHub issueCurrent Behavior
npx nx g @nrwl/angular:library --name product-search --directory app/feature --tags platform:typescript,platform:angular,scope:app-feature --prefix pdp --routing false --importPath @pdp/product-search
Results in this error:
'style' is not found in schema
I had to remove the style entry in nx.json from
"@nrwl/angular:library": {
"style": "scss",
"linter": "eslint",
"unitTestRunner": "jest"
},
I’m pretty sure I didn’t add this entry manually. Was this removed in a recent update? I couldn’t find anything in the https://github.com/nrwl/nx/releases
Expected Behavior
Steps to Reproduce
Failure Logs
Environment
Node : 16.13.1
OS : win32 x64
npm : 8.3.0
nx : 13.3.11
@nrwl/angular : 13.3.11
@nrwl/cli : 13.3.11
@nrwl/cypress : 13.3.11
@nrwl/devkit : 13.3.11
@nrwl/eslint-plugin-nx : 13.3.11
@nrwl/express : undefined
@nrwl/jest : 13.3.11
@nrwl/linter : 13.3.11
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : undefined
@nrwl/react : undefined
@nrwl/react-native : undefined
@nrwl/schematics : undefined
@nrwl/tao : 13.3.11
@nrwl/web : undefined
@nrwl/workspace : 13.3.11
@nrwl/storybook : 13.3.11
@nrwl/gatsby : undefined
typescript : 4.4.4
rxjs : 7.4.0
---------------------------------------
Community plugins:
@angular/animations: 13.0.0
@angular/cdk: 13.0.0
@angular/common: 13.0.0
@angular/compiler: 13.0.0
@angular/core: 13.0.0
@angular/forms: 13.0.0
@angular/material: 13.0.0
@angular/material-moment-adapter: 13.1.0
@angular/platform-browser: 13.0.0
@angular/platform-browser-dynamic: 13.0.0
@angular/router: 13.0.0
@ngrx/component: 13.0.2
@ngrx/component-store: 13.0.2
@ngrx/effects: 13.0.2
@ngrx/entity: 13.0.2
@ngrx/router-store: 13.0.2
@ngrx/store: 13.0.2
@angular-devkit/build-angular: 13.0.4
@angular/cli: 13.0.4
@angular/compiler-cli: 13.0.0
@angular/language-service: 13.0.0
@ngrx/schematics: 13.0.2
@ngrx/store-devtools: 13.0.2
@storybook/angular: 6.4.9
eslint-plugin-ngrx: 2.0.2
(node:27712) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\Users\zoechbau\source\plansee\data-platform\node_modules\tslib\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:16
- Comments:10
Top Results From Across the Web
Nx not able to generate component after upgrading to v12
When running nx g c shells/root --project=test-app for example, an error is thrown saying 'styleext' is not found in schema. Within the angular....
Read more >Schematics for libraries
The Angular CLI uses this entry to find named schematics in your collection when it runs commands.
Read more >nrwl-nx/community - Gitter
Im a real fan of the nx workspace. The only thing i have not figured out is external dependency management if i want...
Read more >3 - Generating components and Nx lib - Angular and NgRx
Add a new lib called auth. We will not lazy load this lib as auth will always be used by our app. Choose...
Read more >nrwl/angular:library
nx g @nrwl/angular:library my-ui-lib --tags=ui ... Add a module spec file. ... Specifies if the component generated style will contain :host { display: ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have a similar issue when using @nrwl 13.3.9.
Executing task: npx nx generate @nrwl/angular:library --name=ngs --directory=ngs/security --no-interactive --dry-run < ‘style’ is not found in schema
I remove “style”: “scss”, in @nrwl/angular:library in nx.json file and i can create my lib.
Yes, the option was removed from the
@nrwl/angular:librarygenerator.@leosvelperez we should write a migration to remove defaults.