link-preview icon indicating copy to clipboard operation
link-preview copied to clipboard

Angular 10 Error: Failed to compile entry-point @angular-material-extensions/link-preview (es2015 as esm2015) due to compilation errors:

Open javatutorials2016 opened this issue 5 years ago • 5 comments

Bug Report or Feature Request (mark with an x)

- [ x] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

Versions

Repro steps

The log given by the failure

ERROR in Failed to compile entry-point @angular-material-extensions/link-preview (es2015 as esm2015) due to compilation errors: node_modules/@angular-material-extensions/link-preview/esm2015/link-preview.js:255:26 - error NG1010: Value at position 3 in the NgModule.imports of MatLinkPreviewModule is not a reference: [object Object]

255 imports: [ ~ 256 CommonModule, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 261 MatProgressSpinnerModule, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 262 ], ~~~~~~~~~~~~~~~~~

Desired functionality

Mention any other details that might be useful

javatutorials2016 avatar Sep 01 '20 01:09 javatutorials2016

I am facing the same issue

WARNING in Entry point 'ngx-linkifyjs' contains deep imports into '......./node_modules/linkifyjs/plugins/hashtag', '....../node_modules/linkifyjs/plugins/mention', '...../node_modules/linkifyjs/string'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

ERROR in Failed to compile entry-point @angular-material-extensions/link-preview (es2015 as esm2015) due to compilation errors: ../../node_modules/@angular-material-extensions/link-preview/esm2015/link-preview.js:255:26 - error NG1010: Value at position 3 in the NgModule.imports of MatLinkPreviewModule is not a reference: [object Object]

255 imports: [ ~ 256 CommonModule, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 261 MatProgressSpinnerModule, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 262 ],

OS: macOS Catalina

SudhaChandrann avatar Jan 10 '21 04:01 SudhaChandrann

I'm facing the same issue. Any help please?

HasanAboShally avatar Jan 30 '21 16:01 HasanAboShally

I'm facing the same issue. Any help please?

I was using Angular 10, seems it works after downgrading to Angular7 as mentioned in dependencies.

SudhaChandrann avatar Jan 30 '21 17:01 SudhaChandrann

The full error should include the mention of node_modules/@angular-material-extensions/link-preview/esm2015/link-preview.js:259:21 259 MatCardModule, Unknown reference. The file @angular-material-entensions/link-preview/esm2015/link-preview.js uses import { MatCardModule, MatButtonModule, MatProgressSpinnerModule } from '@angular/material'; I assume that in Angular 10, MatCardModule is no longer called/found in that path. Changing it to import { MatCardModule } from '@angular/material/card'; import { MatButtonModule, } from '@angular/material/button'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; made the error go away. And no, this is not the solution explicitly, as I just modified this directly in the node_modules/@angular-material-extensions/.../link-preview file directly to check if the error would go away.

brodriguezmilla avatar Feb 01 '21 23:02 brodriguezmilla

Any news on this? I am stuck here for days...

filipencus avatar May 22 '21 22:05 filipencus