You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in Failed to compile entry-point @angular-material-extensions/faq (es2015 as esm2015) due to compilation errors:
node_modules/@angular-material-extensions/faq/esm2015/faq.js:129:26 - error NG1010: Value at position 4 in the NgModule.imports of MatFaqModule is not a reference
Value could not be determined statically.
129 imports: [
~
130 CommonModule,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
139 MatExpansionModule
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140 ],
~~~~~~~~~~~~~~~~~
node_modules/@angular-material-extensions/faq/esm2015/faq.js:134:21
134 MatCardModule,
~~~~~~~~~~~~~
Unknown reference.
Solution
To fix this I just had to replace import { MatCardModule, MatToolbarModule, MatButtonModule, MatInputModule, MatIconModule, MatExpansionModule } from '@angular/material'; by
Bug Report or Feature Request (mark with an
x
)OS and Version
Ubuntu 20.04.3 LTS
Versions
Output from:
ng --version
:Repro steps
I run the following command on my repo:
npm run start
My package.json:
The log given by the failure
Solution
To fix this I just had to replace
import { MatCardModule, MatToolbarModule, MatButtonModule, MatInputModule, MatIconModule, MatExpansionModule } from '@angular/material';
byFind answer here : https://stackoverflow.com/questions/60141975/not-able-to-import-angular-material-module#answer-60142211
Desired functionality
I just want to make easily a FAQ page
Mention any other details that might be useful
None
The text was updated successfully, but these errors were encountered: