# Ionic 2 rollup git clone error namespace conflict

**URL:** <https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844>\
**Category:** ionic-v3\
**Created:** [October 22, 2016, 4:41am UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844 "2016-10-22T04:41:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipbrack](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@philipbrack](https://forum.ionicframework.com/u/philipbrack)\
**Post date:** [October 22, 2016, 4:41am UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/1 "2016-10-22T04:41:00Z")

</div>

Hi all,

I created an ionic project and cloned it elsewhere, when I run ionic serve, I get errors such as the following.

```
[21:29:17] rollup: Conflicting namespaces: /Users/pbrack/dev/paystumped/paystumped/node_modules/@angular/compiler/index.js
            re-exports 'PropertyBindingType' from both /Users/pbrack/dev/paystumped/paystumped/node_modules/@angular/compiler/src/template_parser/template_ast.js
            (will be ignored) and /Users/pbrack/dev/paystumped/paystumped/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[21:29:17] rollup: Conflicting namespaces: /Users/pbrack/dev/paystumped/paystumped/node_modules/@angular/compiler/index.js
            re-exports 'templateVisitAll' from both /Users/pbrack/dev/paystumped/paystumped/node_modules/@angular/compiler/src/template_parser/template_ast.js
            (will be ignored) and /Users/pbrack/dev/paystumped/paystumped/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[21:29:23] bundle finished in 7.48 s

```

When I run ionic build ios I get the following error.

```
[21:39:42] /Users/pbrack/dev/paystumped/paystumped/node_modules/@angular/compiler-cli/src/private_import_compiler.js:10
[21:39:42] exports.AssetUrl = compiler_1. __compiler_private__.AssetUrl;
[21:39:42] TypeError: Cannot read property 'AssetUrl' of undefined
[21:39:42] ngc failed
[21:39:42] ionic-app-script task: "build"
[21:39:42] Error: Error

```

Has anyone else seen this? If so, how can I avoid the warnings.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [October 22, 2016, 5:13am UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/2 "2016-10-22T05:13:21Z")

</div>

Any chance you put the contents of `node_modules` under version control? I think that’s generally considered a bad idea.

---

<div class="post-metadata">

**Author:** ![Nishchit14](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nishchit14/32/71732_2.png) [@Nishchit14](https://forum.ionicframework.com/u/Nishchit14)\
**Post date:** [October 22, 2016, 7:05am UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/3 "2016-10-22T07:05:23Z")

</div>

I am facing same error here ☹

> rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘TextAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.  
> [12:28:52] rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘BoundTextAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.  
> [12:28:52] rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘AttrAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.  
> [12:28:52] rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘BoundElementPropertyAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.  
> [12:28:52] rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘BoundEventAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.  
> [12:28:52] rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘ReferenceAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.  
> [12:28:52] rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘VariableAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.  
> [12:28:52] rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘ElementAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.  
> [12:28:52] rollup: Conflicting namespaces: /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/index.js  
> re-exports ‘EmbeddedTemplateAst’ from both /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js  
> (will be ignored) and /home/nd/Desktop/Ionic2/myApp/node\_modules/@angular/compiler/src/template\_parser/template\_ast.js.

---

<div class="post-metadata">

**Author:** ![Nishchit14](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nishchit14/32/71732_2.png) [@Nishchit14](https://forum.ionicframework.com/u/Nishchit14)\
**Post date:** [October 22, 2016, 7:42am UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/4 "2016-10-22T07:42:24Z")

</div>

This dependencies worked for me, Please try it.

```
"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/storage": "1.0.3",
    "ionic-angular": "2.0.0-rc.1",
    "ionic-native": "2.2.3",
    "ionicons": "3.0.0",
    "moment": "2.15.1",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.21"
  },
  "devDependencies": {
    "@ionic/app-scripts": "^0.0.36",
    "typescript": "^2.0.3"
  },
```

---

<div class="post-metadata">

**Author:** ![nikini](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nikini/32/104133_2.png) [@nikini](https://forum.ionicframework.com/u/nikini)\
**Post date:** [October 22, 2016, 11:01am UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/5 "2016-10-22T11:01:48Z")

</div>

I’m also getting the same thing, even with the same dependencies. Ran `rm -rf node_modules` and `npm cache clean` and a fresh `npm install` multiple times, but I get the same thing.

---

<div class="post-metadata">

**Author:** ![pythic](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@pythic](https://forum.ionicframework.com/u/pythic)\
**Post date:** [October 22, 2016, 12:19pm UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/6 "2016-10-22T12:19:29Z")

</div>

Same here ☹

```
Patricks-MacBook-Pro:EKD sales$ node --version
v6.9.1
Patricks-MacBook-Pro:EKD sales$ npm --version
3.10.9
Patricks-MacBook-Pro:EKD sales$ ionic --version
2.1.1
Patricks-MacBook-Pro:EKD sales$ cordova --version
6.3.1

```

on npm run build / ionic build  
I get a [14:22:10] TypeError: Cannot read property ‘AssetUrl’ of undefined

ionic serve works fine, only throws the conflicting namespaces warnings at rollup

THIS fixed it for me :

> [@Ionic 2 build faill](https://forum.ionicframework.com/t/ionic-2-build-faill/67872):
>
> Hello, I’m trying to build a my project. When i run ionic build / I get the following output. node\_modules/@angular/compiler-cli/src/private\_import\_compiler.js:10 [12:23:09] exports.AssetUrl = compiler\_1.compiler\_private.AssetUrl; [12:23:09] TypeError: Cannot read property ‘AssetUrl’ of undefined [12:23:09] ngc failed [12:23:09] ionic-app-script task: “build” [12:23:09] Error: Error here is my package.json content: “dependencies”: { “@angular/common”: “^2.0.0”, “@angular/c…

Pin down the versions, remove all caret signs (^) before version numbers, if you have any .

---

<div class="post-metadata">

**Author:** ![AndyM3Kt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/andym3kt/32/86132_2.png) [@AndyM3Kt](https://forum.ionicframework.com/u/AndyM3Kt)\
**Post date:** [October 25, 2016, 2:44pm UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/7 "2016-10-25T14:44:01Z")

</div>

This also worked for me and I deleted node\_modules first just to be safe.

---

<div class="post-metadata">

**Author:** ![gobenaath](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@gobenaath](https://forum.ionicframework.com/u/gobenaath)\
**Post date:** [October 26, 2016, 2:20pm UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/8 "2016-10-26T14:20:49Z")

</div>

I too got the same AssetUrl error. I removed the caret sign. When I run ionic build, I am getting following error

[09:17:28] lint finished in 4.67 s  
[09:17:51] Error: Error at c:/git\_projects/Service/4144\_1/Se  
vice/static/OTS/node\_modules/@angular/platform-browser/src/private\_import\_core.  
.ts:12:56

[09:17:51] Property ‘VIEW\_ENCAPSULATION\_VALUES’ does not exist on type ‘{ isDe  
aultChangeDetectionStrategy  
[09:17:51] (changeDetectionStrategy: ChangeDetectionStrategy) =\> boolean…’.  
[09:17:51] Error at c:/git\_projects/Service/4144\_1/Service/s  
atic/OTS/node\_modules/@angular/compiler/src/private\_import\_core.d.ts:26:57  
[09:17:51] Property ‘MAX\_INTERPOLATION\_VALUES’ does not exist on type ‘{ isDef  
ultChangeDetectionStrategy  
[09:17:51] (changeDetectionStrategy: ChangeDetectionStrategy) =\> boolean…’.  
[09:17:51] Error at c:/git\_projects/Service/4144\_1/Service/s  
atic/OTS/node\_modules/@angular/compiler/src/private\_import\_core.d.ts:27:45  
[09:17:51] Property ‘checkBinding’ does not exist on type ‘{ isDefaultChangeDe  
ectionStrategy  
[09:17:51] (changeDetectionStrategy: ChangeDetectionStrategy) =\> boolean…’.

---

<div class="post-metadata">

**Author:** ![anon70733690](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@anon70733690](https://forum.ionicframework.com/u/anon70733690)\
**Post date:** [November 7, 2016, 10:18pm UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/9 "2016-11-07T22:18:10Z")

</div>

Seeing same problems, many of them. So far for no breaking changes in RC2.

```
rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js

            re-exports 'TextAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'BoundTextAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'AttrAst' from both

            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be

            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.

[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'BoundElementPropertyAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.

[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'BoundEventAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js

            re-exports 'ReferenceAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.

[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'VariableAst' from both

            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'ElementAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be

            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.

[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'EmbeddedTemplateAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.

[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'BoundDirectivePropertyAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'DirectiveAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.

[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'ProviderAst' from both

            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'ProviderAstType' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js

            re-exports 'NgContentAst' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.

[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'PropertyBindingType' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be
            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
[23:14:08] rollup: Conflicting namespaces: /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/index.js
            re-exports 'templateVisitAll' from both
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js (will be

            ignored) and
            /Users/tyrion/devel/saveup-front/node_modules/@angular/compiler/src/template_parser/template_ast.js.
```

---

<div class="post-metadata">

**Author:** ![Yimiprod](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/yimiprod/32/101546_2.png) [@Yimiprod](https://forum.ionicframework.com/u/Yimiprod)\
**Post date:** [November 25, 2016, 5:56pm UTC](https://forum.ionicframework.com/t/ionic-2-rollup-git-clone-error-namespace-conflict/67844/10 "2016-11-25T17:56:29Z")

</div>

Same problem, it appear when i try to update `ionic_rollup` in `package.json`
