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

(SystemJS) Can't resolve all parameters for ComponentLoaderFactory: (?, ?, ?, ?, ?). #4494

Closed
amolbs2106 opened this issue Jul 12, 2018 · 9 comments

Comments

@amolbs2106
Copy link

After adding
import { BsDatepickerModule } from 'ngx-bootstrap';
in app.modules m getting below error.

(index):26 Error: (SystemJS) Can't resolve all parameters for ComponentLoaderFactory: (?, ?, ?, ?, ?).
Error: Can't resolve all parameters for ComponentLoaderFactory: (?, ?, ?, ?, ?).
at syntaxError (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:1725:34)
at CompileMetadataResolver._getDependenciesMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15800:35)
at CompileMetadataResolver._getTypeMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15668:26)
at CompileMetadataResolver._getInjectableMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15654:21)
at CompileMetadataResolver.getProviderMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15945:40)
at eval (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15874:49)
at Array.forEach ()
at CompileMetadataResolver._getProvidersMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15834:19)
at eval (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15409:63)
at Array.forEach ()
Evaluating http://bacs.com/src/main.js
Error loading http://bacs.com/src/main.js
at syntaxError (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:1725:34)
at CompileMetadataResolver._getDependenciesMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15800:35)
at CompileMetadataResolver._getTypeMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15668:26)
at CompileMetadataResolver._getInjectableMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15654:21)
at CompileMetadataResolver.getProviderMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15945:40)
at eval (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15874:49)
at Array.forEach ()
at CompileMetadataResolver._getProvidersMetadata (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15834:19)
at eval (http://bacs.com/node_modules/@angular/compiler/bundles/compiler.umd.js:15409:63)
at Array.forEach ()
Evaluating http://bacs.com/src/main.js
Error loading http://bacs.com/src/main.js

@Joklogh
Copy link

Joklogh commented Jul 13, 2018

Hi @amolbs2106
Are using SystemJS or angular-cli?
Did you set up ngx-bootstrap according to the Getting Started section on the website?

@amolbs2106
Copy link
Author

Hi @Joklogh
m using systemJS. Yes i have set up ngx-bootstrap according to getting started section.

Thanks

@jordanluyke
Copy link

Having same problem with v3

In my systemJS:

    "ngx-bootstrap": {
        main: "bundles/ngx-bootstrap.umd.min.js",
        defaultExtension: "js"
    },

@styxiak
Copy link

styxiak commented Jul 19, 2018

Integration with angular seed. Angular version 6:

With AlertModule:
partners:94 Error: Can't resolve all parameters for e: (?, ?).
  Evaluating http://localhost:5555/app/main.js
  Loading app/main
    at syntaxError (util.ts:100)
    at CompileMetadataResolver._getDependenciesMetadata (metadata_resolver.ts:959)
    at CompileMetadataResolver._getTypeMetadata (metadata_resolver.ts:839)
    at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (metadata_resolver.ts:380)
    at CompileMetadataResolver._getEntryComponentMetadata (metadata_resolver.ts:1070)
    at eval (metadata_resolver.ts:659)
    at Array.map (<anonymous>)
    at CompileMetadataResolver.getNgModuleMetadata (metadata_resolver.ts:659)
    at CompileMetadataResolver.getNgModuleSummary (metadata_resolver.ts:453)
    at eval (metadata_resolver.ts:551) "Not expecting this error? Report it at https://github.com/mgechev/angular-seed/issues"

@BoykoAlex
Copy link

Any news on this? Workarounds?
My workaround was transpile the es2015 file with SystemJS Babel transpiler plugin. It worked great, but in Chrome in Windows Browser-Sync get confused by the transpiled file at runtime and keeps reloading the page forever...

@archpollux
Copy link

My solution was to have @Inject on all constructor parameters that needed to be injected.

@Valery-vs
Copy link

+1

@tiagomsmagalhaes
Copy link

I'm getting this with Meteor 1.6.1.3 and Angular 6

@Domainv
Copy link
Contributor

Domainv commented Oct 16, 2018

soon be fixed in new release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants