Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Encountered undefined provider! Usually this means you have a circular dependencies #885

@awebdeveloper

Description

@awebdeveloper

Short description of the problem:

I am migrating to ionic 3 and i get the above error. I followed the instructions in this link
https://github.com/driftyco/ionic/releases and now i get this error.

I ran npm run ionic:build --prod it gives the below error but npm run ionic:build works perfectly fine

Which @ionic/app-scripts version are you using?
1.3,0

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

[00:10:06] ngc started ... [00:10:08] ionic-app-script task: "build" [00:10:08] Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files. Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'b arrel' index.ts files. at syntaxError (/Users/pr/workspace/ui/node_modules/@angular/compiler/bundles/compiler.umd.js:1513:3 4) at /Users/pr/workspace/ui/node_modules/@angular/compiler/bundles/compiler.umd.js:14398:40 at Array.forEach (native) at CompileMetadataResolver._getProvidersMetadata (/Users/pr/workspace/ui/node_modules/@angular/compi ler/bundles/compiler.umd.js:14383:19) at CompileMetadataResolver.getNgModuleMetadata (/Users/pr/workspace/ui/node_modules/@angular/compile r/bundles/compiler.umd.js:14039:50) at addNgModule (/Users/pr/workspace/ui/node_modules/@angular/compiler/bundles/compiler.umd.js:22526: 58) at /Users/pr/workspace/ui/node_modules/@angular/compiler/bundles/compiler.umd.js:22537:14 at Array.forEach (native) at _createNgModules (/Users/pr/workspace/ui/node_modules/@angular/compiler/bundles/compiler.umd.js:2 2536:26) at analyzeNgModules (/Users/pr/workspace/ui/node_modules/@angular/compiler/bundles/compiler.umd.js:2 2411:14) 

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