Skip to content

Can't get ngx-bootstrap to work in plugin #41

@kcsampson

Description

@kcsampson

Using the Angular 8 cli branch.

I'm trying to get anything from ngx-bootstrap to simply work in a plugin, even if the plugin imports the entire library.

I was able to get @angular/material working just fine.

Placing an entry linke 'ngx-bootstrap' in externals doesn't do the trick. I get:

ERROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError(AppModule)[t -> function(){}]:
StaticInjectorError(Platform: core)[t -> function(){}]:
NullInjectorError: No provider for function(){}!
NullInjectorError: StaticInjectorError(AppModule)[t -> function(){}]:
StaticInjectorError(Platform: core)[t -> function(){}]:
NullInjectorError: No provider for function(){}!
at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get

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