Skip to content

Unexpected value 'SeedModule' imported by the module 'AppModule'. Please add a @NgModule annotation. #8

@ghost

Description

I followed all the steps you described, up to npm link from dist folder and npm link angular-npm-module-seed in the root folder of the project where I want to use my custom component. Linking seems to work fine as I see the code inside npm_modules.

After that I imported the SeedModule inside my test app's AppModule (which uses Angular 4).
However I can't run my application anymore. The browser console logs the following error:
Unexpected value 'SeedModule' imported by the module 'AppModule'. Please add a @NgModule annotation.

Any idea?

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