ng2-idle icon indicating copy to clipboard operation
ng2-idle copied to clipboard

Metadata issue with beta 13

Open erikread opened this issue 7 years ago • 10 comments

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior ng build --prod produces the following error when using @ng-idle/core 2.0.0-beta.13 Metadata version mismatch for module C:.../node_modules/@ng-idle/core/src/interruptargs.d.ts, found version 4, expected 3

Expected behavior

Beta 12 did not exhibit this behavior

Minimal reproduction of the problem with instructions

here is my top level npm package list: +-- angular-devkit/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- angular/[email protected] +-- ng-idle/[email protected] +-- ng-idle/[email protected] +-- types/[email protected] +-- types/[email protected] +-- types/[email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] `-- [email protected]

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Windows 10 FCU, VS Core, NPM, Node

  • @ng-idle version: 2.x

2.0.0-beta.13

  • Angular version: 2.x

4.4.6

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

n/a

  • Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript 2.6.2
  • Node: node --version = 6.11.2

erikread avatar Dec 18 '17 11:12 erikread

I am having the same issues

macw007 avatar Dec 18 '17 21:12 macw007

in the process of downgrading to a previous build hopefully that should fix my issue.

macw007 avatar Dec 18 '17 21:12 macw007

I did a little more research. Just the act of calling NgIdleKeepaliveModule.forRoot() in the module imports causes the issue. Backing up to beta 12 works for now.

erikread avatar Dec 19 '17 15:12 erikread

I'm having this issue too in the recent versions.

Edit: I did the same as @cmorante and it worked...I had the same in the package.json .

asfo avatar Dec 19 '17 19:12 asfo

I'm having this issue too.. This wasn't tested?

einewton avatar Dec 20 '17 01:12 einewton

unfortunately I had this same error duarnte one day without finding a solution but the strange thing is that my packages.json file had no references to beta 13, had dependencies to beta 12, then I thought that updating would be solved but it was a failure until today in the morning with fresh head just run: npm install @ng-idle/[email protected] npm install @ng-idle/[email protected] and this could build my application again and mi packages.json have this lines: "@ng-idle/core": "^2.0.0-beta.12", "@ng-idle/keepalive": "^2.0.0-beta.12", "angular2-moment": "^1.7.0",

cmorante avatar Dec 20 '17 13:12 cmorante

I am having this issue in production but not in my local can't tell what I am doing wrong.. Okay I solved it by removing the "^" character within the packages.json i.e I changed "@ng-idle/core": "^2.0.0-beta.12" to "@ng-idle/core": "2.0.0-beta.12" ... It built just fine

KudzieChase avatar Dec 23 '17 22:12 KudzieChase

This looks to be an issue where a newer version of typescript was used to build beta-13 than the version you are using for your build. Personally I suspect the cause of this is the changes force by google on HttpClient for angular 5 support.

PloughingAByteField avatar Dec 27 '17 15:12 PloughingAByteField

In order for me to get this to work, I had to upgrade to angular 5.1.2

einewton avatar Dec 27 '17 17:12 einewton

This breaks ng2-idle for using with angular 4.x.x I have already published Applications stuck at angular 4 with a broken build process 👎

kaedwen avatar Jan 31 '18 07:01 kaedwen