Reputation: 339
The following error occurs when invoking command ng generate
:
An unhandled exception occurred: Schematic "appShell" not found in collection "@ionic/angular-toolkit".
Upvotes: 7
Views: 5140
Reputation: 26
Just for reference you can also add the angular schematics, like so:
"cli": {
"schematicCollections": [
"@ionic/angular-toolkit",
"@schematics/angular"
],
"analytics": false
},
Use with care.
Upvotes: 0
Reputation: 25535
It's possible you have the default schematics set to ionic (@ionic/angular-toolkit) in angular.json. This is defined by schematicCollections near the bottom:
"cli": {
"analytics": true,
"schematicCollections": ["@ionic/angular-toolkit"]
},
By simply removing this line, the angular schematics will work again, but the ionic schematics won't.
"cli": {
"analytics": true
},
Upvotes: 1
Reputation: 339
You're using the wrong command. When working with Ionic v4, you must use Ionic commands.
Use instead ionic generate
.
Upvotes: 14