Skip to content

Uncaught Error: Can't resolve all parameters for... #5007

@REPTILEHAUS

Description

@REPTILEHAUS

Updated the angular cli to the latest and now my scripts bundle isnt generating... Getting these errors, any ideas ?

Uncaught Error: Can't resolve all parameters for HomepageComponent: (?, ?, ?).
    at CompileMetadataResolver.getDependenciesMetadata (http://localhost:4200/vendor.bundle.js:27650:19)
    at CompileMetadataResolver.getTypeMetadata (http://localhost:4200/vendor.bundle.js:27547:26)
    at CompileMetadataResolver.getDirectiveMetadata (http://localhost:4200/vendor.bundle.js:27320:28)
    at http://localhost:4200/vendor.bundle.js:27730:33
    at Array.forEach (native)
    at CompileMetadataResolver._getEntryComponentsFromProvider (http://localhost:4200/vendor.bundle.js:27729:30)
    at http://localhost:4200/vendor.bundle.js:27687:83
    at Array.forEach (native)
    at CompileMetadataResolver.getProvidersMetadata (http://localhost:4200/vendor.bundle.js:27674:19)
    at http://localhost:4200/vendor.bundle.js:27681:41

my angular-cli.json is


        {
            "project": {
                "version": "1.0.0-beta.16",
                "name": "angular2"
            },
            "apps": [{
                "root": "src",
                "outDir": "dist",
                "assets": "assets",
                "index": "index.html",
                "main": "main.ts",
                "test": "test.ts",
                "tsconfig": "tsconfig.json",
                "prefix": "app",
                "mobile": false,
                "styles": [],
                "scripts": [
                    "../node_modules/jquery/dist/jquery.min.js",
                    "./assets/js/seriously.js",
                    "./assets/js/remodal.js",
                    "./assets/js/wow.min.js",
                    "./assets/js/classie.js",
                    "./assets/js/masonry.js",
                    "./assets/js/owl.carousel.min.js",
                    "./assets/js/particles.min.js",
                    "./assets/js/selectFx.js",
                    "./assets/js/sintaxify.js"
                ],
                "environmentSource": "environments/environment.ts",
                "environments": {
                "source": "environments/environment.ts",
                "dev": "environments/environment.ts",
                "prod": "environments/environment.prod.ts"
                }
            }],
            "addons": [],
            "packages": [],
            "e2e": {
                "protractor": {
                    "config": "./protractor.conf.js"
                }
            },
            "test": {
                "karma": {
                    "config": "./karma.conf.js"
                }
            },
            "defaults": {
                "styleExt": "css",
                "prefixInterfaces": false
            }
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions