Ionic-app-scripts: rollup: Conflicting namespaces: node_modules\@angular\compiler\index.js

Created on 27 Oct 2016  Â·  6Comments  Â·  Source: ionic-team/ionic-app-scripts

_From @karlpatrickespiritu on October 26, 2016 7:43_

[15:38:46]  lint finished in 2.05 s
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'TextAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'BoundTextAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'AttrAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'BoundElementPropertyAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'BoundEventAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'ReferenceAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'VariableAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'ElementAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'EmbeddedTemplateAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'BoundDirectivePropertyAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'DirectiveAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'ProviderAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'ProviderAstType' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'NgContentAst' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'PropertyBindingType' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:47]  rollup: Conflicting namespaces: C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\index.js re-exports 'templateVisitAll' from both C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js (will be ignored) and C:\xampp\htdocs\sportsinfocus-mobile-app\node_modules\@angular\compiler\src\template_parser\template_ast.js.
[15:38:58]  bundle dev finished in 14.52 s
[15:38:58]  sass started ...
[15:39:00]  sass finished in 2.21 s
[15:39:00]  build dev finished in 16.77 s
[15:39:03]  watch ready in 18.94 s
Running live reload server: http://localhost:35729
Watching: www/**/*, !www/lib/**/*, !www/**/*.map
√ Running dev server:  http://localhost:8100
Ionic server commands, enter:
"dependencies": {
    "@angular/common": "^2.0.0",
    "@angular/compiler": "^2.0.0",
    "@angular/compiler-cli": "^0.6.2",
    "@angular/core": "^2.0.0",
    "@angular/forms": "^2.0.0",
    "@angular/http": "^2.0.0",
    "@angular/platform-browser": "^2.0.0",
    "@angular/platform-browser-dynamic": "^2.0.0",
    "@angular/platform-server": "^2.0.0",
    "@ionic/app-scripts": "0.0.30",
    "@ionic/storage": "^1.0.3",
    "angular2-jwt": "^0.1.25",
    "ember-cli-windows": "^2.1.6",
    "ionic-angular": "^2.0.0-rc.0",
    "ionic-native": "^2.0.3",
    "ionicons": "^3.0.0",
    "rxjs": "^5.0.0-beta.12",
    "zone.js": "^0.6.21"
  },
  "devDependencies": {
    "@ionic/app-scripts": "latest",
    "typescript": "^2.0.3"
  }

_Copied from original issue: driftyco/ionic#8910_

All 6 comments

_From @ramonornela on October 26, 2016 8:2_

See https://github.com/driftyco/ionic2-app-base/blob/master/package.json

@karlpatrickespiritu, @ramonornela,

What am I missing here? I'm unclear on what I'm looking at. We need more info to resolve.

A good first step to resolving would be getting rid of the ^ from the package.json wherever possible. Angular changed some thing in the compiler that are breaking parts of Ionic, so it's best to stay on 2.0.0 for now.

Thanks,
Dan

My fault. I tried updating my dependencies once.

image

My copy of package.json is outdated from the latest ionic version since the tildes ^ are gone. Thanks!

@danbucholtz @jgw96
Got same warnings with [email protected] and [email protected]. Tried to remove node_modules and run npm install several times.

My package.json

"@angular/common": "2.1.1", "@angular/compiler": "2.1.1", "@angular/compiler-cli": "2.1.1", "@angular/core": "2.1.1", "@angular/forms": "2.1.1", "@angular/http": "2.1.1", "@angular/platform-browser": "2.1.1", "@angular/platform-browser-dynamic": "2.1.1", "@angular/platform-server": "2.1.1", "@ionic/storage": "1.1.6", "ionic-angular": "2.0.0-rc.2", "ionic-native": "2.2.3", "ionicons": "3.0.0", "rxjs": "5.0.0-beta.12", "zone.js": "0.6.21",

+1
Got same warnings as above and have same package as @maxkunitsa, started after manually updating from rc1 to rc2.

UPDATE:
Solved it by: npm install @ionic/app-scripts@latest
as stated on the Ionic Blog rollup was replaced by webpack and could be installed by: npm install @ionic/app-scripts@latest.
This solved all warnings and ionic serve is working again.
Maybe it helps others with similar warnings.

+1

Was this page helpful?
0 / 5 - 0 ratings