ng2-idle
ng2-idle copied to clipboard
Metadata issue with beta 13
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
I am having the same issues
in the process of downgrading to a previous build hopefully that should fix my issue.
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.
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
.
I'm having this issue too.. This wasn't tested?
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",
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
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.
In order for me to get this to work, I had to upgrade to angular 5.1.2
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 👎