Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I integrate an adminLTE template in Angular 8. the first time when I launch the server the program works correctly after it gives this error

ERROR in src/assets/plugins/filterizr/FilterContainer.d.ts:1:10 - error TS2305: Module '"D:/angular_workspace/templateAngular/src/assets/plugins/filterizr/FilterizrOptions/defaultOptions "' has no exported member 'RawOptionsCallbacks'.

1 import { RawOptionsCallbacks } from './FilterizrOptions/defaultOptions'; ~~~~~~~~~~~~~~~~~~~ src/assets/plugins/filterizr/FilterItems.d.ts:1:10 - error TS2305: Module '"D:/angular_workspace/templateAngular/src/assets/plugins/filterizr/ActiveFilter"' has no exported member 'Filte r'.

1 import { Filter } from './ActiveFilter'; ~~~~~~ src/assets/plugins/filterizr/Filterizr.d.ts:4:10 - error TS2305: Module '"D:/angular_workspace/templateAngular/src/assets/plugins/filterizr/ActiveFilter"' has no exported member 'Filter' .

4 import { Filter } from './ActiveFilter'; ~~~~~~ src/assets/plugins/filterizr/Filterizr.d.ts:5:10 - error TS2305: Module '"D:/angular_workspace/templateAngular/src/assets/plugins/filterizr/FilterizrOptions/defaultOptions"' has no expor ted member 'RawOptions'.

5 import { RawOptions } from './FilterizrOptions/defaultOptions'; ~~~~~~~~~~

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** i 「wdm」: Failed to compile.

like image 588
AFJA Avatar asked Dec 31 '19 19:12

AFJA


2 Answers

I got the same error when i tried to launch the server. Replace imports in these classes:

"Filterizr.d.ts" in plugins/filterizr
Replace these imports:

import { Filter } from './ActiveFilter'; 
import { RawOptions } from './FilterizrOptions/defaultOptions'; 

For these:

import { Filter } from './types/index'; 
import { RawOptions } from './types/interfaces';

"FilterContainer.d.ts" in plugins/filterizr:
Replace this import:

import { RawOptionsCallbacks } from './FilterizrOptions/defaultOptions';

for:

import { RawOptionsCallbacks } from './types/interfaces'; 

"FilterItems.d.ts" in plugins/filterizr:
Replace this import:

import { Filter } from './ActiveFilter'; 

for

import { Filter } from './types'; 
like image 118
lincidro Avatar answered Oct 18 '22 23:10

lincidro


Just remove the Filterizr folder from your plugins folder in assets its useless for me and works

like image 39
Cenk Taylan Düz Avatar answered Oct 18 '22 23:10

Cenk Taylan Düz