Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue - Angular package format #9

Open
anyplin opened this issue May 21, 2019 · 0 comments
Open

Build issue - Angular package format #9

anyplin opened this issue May 21, 2019 · 0 comments

Comments

@anyplin
Copy link

anyplin commented May 21, 2019

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)

@anyplin anyplin changed the title Build issue - no exported member MdDialogRef... Build issue - Angular package format May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant