It seems I can't use the modules that Angular Material provides for some reason.
bit version 0.0.469
//workspace.jsonc
...
"policy": {
"dependencies": {
"@angular/material": "12.1.3"
},
"peerDependencies": {}
},
...
"teambit.angular/angular-v12@0.0.22": {},
"teambit.workspace/variants": {
"*": {
// Replace `v12` by the version of Angular that you want to use
"teambit.angular/angular-v12@0.0.22": {}
}
},
"teambit.generator/generator": {
"aspects": [
// Replace `v12` by the version of Angular that you want to use
"teambit.angular/angular-v12@0.0.22"
]
}
button.module.ts
import { NgModule } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { ButtonComponent } from './button.component';
@NgModule({
declarations: [
ButtonComponent
],
imports: [MatButtonModule],
exports: [
ButtonComponent
]
})
export class ButtonModule {}
Error
I get this error after bit compile and bit install
My package.json does have @angular/material": "^12.1.3", listed and installed
It seems I can't use the modules that Angular Material provides for some reason.
bit version
0.0.469
button.module.ts
Error
I get this error after
bit compile
andbit install
My
package.json
does have@angular/material": "^12.1.3",
listed and installed