1
votes

I had to update the packages of the project and now it does not work, I get the number of the issues: 1)

ERROR in node_modules/ngx-draggable-widget/components/NgWidgetPlaceholder.d.ts:3:22 - error TS2724: Module '"D:/../node_modules/@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'? 3 import { ElementRef, Renderer, OnInit } from '@angular/core';

node_modules/@angular/core/core.d.ts:5761:31 5761 export declare abstract class Renderer2 { ~~~~~~~~~ 'Renderer2' is declared here.

2)

import { MatPaginator } from '@angular/material'; ~~~~~~~~~~~~~~~~~~~ src/app/activeorders/activeorders.component.ts:7:36 - error TS2306: File 'D:/../node_modules/@angular/material/index.d.ts' is not a module.

I already tried the number of the installs/updates but nothing helped, googling did not help neither. Please advise.

1

1 Answers

1
votes

1) Renderer was deprecated for a long time and looks like it was deleted, use Renderer2 instead.

2) Looks like the path of MatPaginatorModule was changed to '@angular/material/paginator' according to https://material.angular.io/components/paginator/api