Skip to content

Hi I have some problem about ng build --prod #4

@SimJH

Description

@SimJH

Hi. I found a err message.

I tried ng build --prod but It can't

message is

Type TypingAnimationDirective in
MyFolder/node_modules/angular-typing-animation/typing-animation.directive.d.ts
is part of the declarations of 2 modules: AppModule in
MyFolder/src/app/app.module.ts
and
TypingAnimationModule in MyFolder/node_modules/angular-typing-animation/typing-animation.module.d.ts!
Please consider moving TypingAnimationDirective
in MyFolder/node_modules/angular-typing-animation/typing-animation.directive.d.ts
to a higher module that imports AppModule in MyFolder/src/app/app.module.ts and TypingAnimationModule in MyFolder/node_modules/angular-typing-animation/typing-animation.module.d.ts.
You can also create a new NgModule that exports and includes
TypingAnimationDirective in MyFolder/node_modules/angular-typing-animation/typing-animation.directive.d.ts
then import that NgModule in AppModule in MyFolder/src/app/app.module.ts and TypingAnimationModule in MyFolder/node_modules/angular-typing-animation/typing-animation.module.d.ts.

Could you help me ??

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