Skip to content

Build issue - Angular package format #9

@anyplin

Description

@anyplin

I tried to add ng-feedback as described to my application but I get the following error message:

ERROR in node_modules/ng-feedback/feedback-dialog/feedback-dialog.component.ts(2,10): error TS2724: Module '"../node_modules/@angular/material/material"' has no exported member 'MdDialogRef'. Did you mean 'MatDialogRef'?
node_modules/ng-feedback/feedback.directive.ts(2,10): error TS2724: Module '"./node_modules/@angular/material/material"' has no exported member 'MdDialog'. Did you mean 'MatDialog'?
node_modules/ng-feedback/feedback.module.ts(10,3): error TS2724: Module '"./node_modules/@angular/material/material"' has no exported member 'MdDialogModule'. Did you mean 'MatDialogModule'?
node_modules/ng-feedback/feedback.module.ts(11,3): error TS2724: Module '"./node_modules/@angular/material/material"' has no exported member 'MdButtonModule'. Did you mean 'MatButtonModule'?
node_modules/ng-feedback/feedback.module.ts(12,3): error TS2724: Module '"./node_modules/@angular/material/material"' has no exported member 'MdIconModule'. Did you mean 'MatIconModule'?
node_modules/ng-feedback/feedback.module.ts(13,3): error TS2724: Module '"./node_modules/@angular/material/material"' has no exported member 'MdInputModule'. Did you mean 'MatInputModule'?
node_modules/ng-feedback/feedback.module.ts(14,3): error TS2724: Module '"./node_modules/@angular/material/material"' has no exported member 'MdTooltipModule'. Did you mean 'MatTooltipModule'?
node_modules/ng-feedback/feedback.module.ts(15,3): error TS2724: Module '"./node_modules/@angular/material/material"' has no exported member 'MdCheckboxModule'. Did you mean 'MatCheckboxModule'?
node_modules/ng-feedback/feedback.module.ts(16,3): error TS2724: Module '"./node_modules/@angular/material/material"' has no exported member 'MdProgressSpinnerModule'. Did you mean 'MatProgressSpinnerModule'?

Below the Angular CLI version I am using:
Angular CLI: 7.3.9
Node: 10.15.2
OS: linux x64
Angular: 7.2.15
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

Package Version

@angular-devkit/architect 0.13.9
@angular-devkit/build-angular 0.13.9
@angular-devkit/build-optimizer 0.13.9
@angular-devkit/build-webpack 0.13.9
@angular-devkit/core 7.3.9
@angular-devkit/schematics 7.3.9
@angular/cdk 7.3.7
@angular/cli 7.3.9
@angular/material 7.3.7
@ngtools/webpack 7.3.9
@schematics/angular 7.3.9
@schematics/update 0.13.9
rxjs 6.5.2
typescript 3.2.2
webpack 4.29.0

Does anyone know what I can do to make it work? Thank you very much!

EDIT:
I changed the indicated issues within the node-modules but now am getting following error:
ERROR in ./node_modules/ng-feedback/index.ts Module build failed (from ./node_modules/@ngtools/webpack/src/index.js): Error: /home/user/Documents/project/node_modules/ng-feedback/index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv). at AngularCompilerPlugin.getCompiledFile (/home/user/Documents/project/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:752:23) at plugin.done.then (/home/user/Documents/project/node_modules/@ngtools/webpack/src/loader.js:41:31) at process._tickCallback (internal/process/next_tick.js:68:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions