These are chat archives for angular/angular-2-ionic-2

21st
Oct 2016
Daniel Lauzon
@daneroo
Oct 21 2016 00:48 UTC
I have an npm package which is meant to be consumed by a browser, if(typeof module !== "undefined" && module.exports){ module.exports = Gun }, any Ideas on how to get a reference to it? I also can't seem to add my own <script> tag to the index.html, it seems to get stripped.
Bastian Bense
@bastibense
Oct 21 2016 06:57 UTC
hello world
Alex
@Alx101
Oct 21 2016 07:26 UTC
@bastibense hello
Alex
@Alx101
Oct 21 2016 09:34 UTC
Ion tabs!
Anyone?
I see that some people have had problems with the order of the tabs in the bar. Does anyone have an idea of how to "re-order" the tabs in the bar?
Gaddamnit
@solemidas_twitter
Oct 21 2016 09:35 UTC
Does any have an idea on how to add a link to the page from angular? Fo
Gaddamnit
@solemidas_twitter
Oct 21 2016 09:40 UTC
I want it so that when someone highlights something on the html and approves, it makes a link of that selection. But I tried doing that but my results comes back with the a tags surrounding the selection. For example the result would be outputed as <a>Selection </a>, instead of a link.
Aamir Shah
@aamir1995
Oct 21 2016 10:32 UTC
How do you guys manage ionViewCanEnter auth guard with angularfire 2 ???
Aamir Shah
@aamir1995
Oct 21 2016 10:48 UTC
An example will be very helpful.
Stephan Kristyn
@nottinhill
Oct 21 2016 15:10 UTC
HI guys.. with AoT.... and WebStorm Debugger.. How to get this to run?
idanwebzi
@idanwebzi
Oct 21 2016 16:17 UTC
Y I cant see the back arrow when navigating between pages?
idanwebzi
@idanwebzi
Oct 21 2016 16:37 UTC
I open a view from a popover component
JSponaugle
@JSponaugle
Oct 21 2016 22:34 UTC
hey everyone anyone come across a build error with windows 10 building to android private import compiler.js:10 exports.AssetUrl = compiler_1.compiler_private.AssetUrl;
Daniel Lauzon
@daneroo
Oct 21 2016 22:37 UTC
[18:35:02]  exports.AssetUrl = compiler_1.__compiler_private__.AssetUrl; 
[18:35:02]  TypeError: Cannot read property 'AssetUrl' of undefined 
[18:35:02]  ngc failed 
[18:35:02]  ionic-app-script task: "build"
JSponaugle
@JSponaugle
Oct 21 2016 22:37 UTC
Yes sir
Daniel Lauzon
@daneroo
Oct 21 2016 22:37 UTC
I'm getting that on OSX, with straight npm run build
JSponaugle
@JSponaugle
Oct 21 2016 22:39 UTC
Getting that with ionic build android
Daniel Lauzon
@daneroo
Oct 21 2016 22:39 UTC
It happened at the same time as these started appearing in ionic serve
[18:38:19]  rollup: Conflicting namespaces: /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/index.js 
            re-exports 'ProviderAst' from both /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/src/template_parser/template_ast.js 
            (will be ignored) and /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/src/template_parser/template_ast.js. 
[18:38:19]  rollup: Conflicting namespaces: /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/index.js 
            re-exports 'ProviderAstType' from both /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/src/template_parser/template_ast.js 
            (will be ignored) and /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/src/template_parser/template_ast.js. 
[18:38:19]  rollup: Conflicting namespaces: /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/index.js 
            re-exports 'NgContentAst' from both /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/src/template_parser/template_ast.js 
            (will be ignored) and /Users/daniellauzon/Code/iMetrical/im-gun/adminApp/node_modules/@angular/compiler/src/template_parser/template_ast.js.
The two files mentioned are actually the same... Not sure if it's related.
Daniel Lauzon
@daneroo
Oct 21 2016 23:04 UTC

This seems to have fixed it for me:
--reverted my package.json dependancies to NOT use the ^2.0.0, but 2.0.0

    "@angular/common": "2.0.0", // not ^2.0.0
    "@angular/compiler": "2.0.0", // not ^2.0.0
    "@angular/compiler-cli": "0.6.2", // not ^0.6.2
    .....

I'm not sure how those were changed, but if fixed the problem for me.

JSponaugle
@JSponaugle
Oct 21 2016 23:04 UTC
ok one sec
Thomas Le
@tvl83
Oct 21 2016 23:06 UTC
do i have to nuke the modules folder and do a new npm install
Daniel Lauzon
@daneroo
Oct 21 2016 23:06 UTC
I did...
Thomas Le
@tvl83
Oct 21 2016 23:06 UTC
ok ill try that
Thomas Le
@tvl83
Oct 21 2016 23:12 UTC
that worked! thanks!
damn celebrated too soon, now there's a whole slew of other issues
/node_modules/@angular/compiler/src/private_import_core.d.ts:26:57 
Property 'MAX_INTERPOLATION_VALUES' does not exist on type '{ isDefaultChangeDetectionStrategy
[18:14:19]  (changeDetectionStrategy: ChangeDetectionStrategy) => boolean...'.
[18:14:19]  Error at /node_modules/@angular/compiler/src/private_import_core.d.ts:27:45
[18:14:19]  Property 'checkBinding' does not exist on type '{ isDefaultChangeDetectionStrategy
[18:14:19]  (changeDetectionStrategy: ChangeDetectionStrategy) => boolean...'.
Thomas Le
@tvl83
Oct 21 2016 23:29 UTC
removed the ^ from the rest of the angular lines (didnt see the others right away) and now it's building
Daniel Lauzon
@daneroo
Oct 21 2016 23:30 UTC
I'm trying to replicate with a clone...
I'm still not sure what npm operation caused the change to ^x.y.z
but it's definitely the problem.
Not sure why so many packages versions need to be pegged, but it works for now!