moribvndvs / ng2-idle

Responding to idle users in Angular (not AngularJS) applications.
https://moribvndvs.github.io/ng2-idle
Apache License 2.0
315 stars 128 forks source link

Will not compile (webpack) with latest Angular 4 (4.1.2) #65

Open Czaste opened 6 years ago

Czaste commented 6 years ago

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

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[x ] 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

ERROR in TypeError: Cannot read property 'getSymbolByModule' of undefined at StaticReflector.findDeclaration (D:\WebSites\my-idle-app\node_modules\@angular\compiler\bundles\compiler.umd.js:23289:62) at StaticReflector.initializeConversionMap (D:\WebSites\my-idle-app\node_modules\@angular\compiler\bundles\compiler.umd.js:23507:36) at new StaticReflector (D:\WebSites\my-idle-app\node_modules\@angular\compiler\bundles\compiler.umd.js:23236:14) at Function.NgTools_InternalApi_NG_2.listLazyRoutes (D:\WebSites\my-idle-app\node_modules\@angular\compiler-cli\src\ngtools_api.js:77:31) at AotPlugin._getLazyRoutesFromNgtools (D:\WebSites\my-idle-app\node_modules\@ngtools\webpack\src\plugin.js:212:44) at _donePromise.Promise.resolve.then.then.then.then.then (D:\WebSites\my-idle-app\node_modules\@ngtools\webpack\src\plugin.js:448:24) at process._tickCallback (internal/process/next_tick.js:103:7)

Expected behavior With Angular 2 (as compiled with included package.json) works without issue. Readme/Documentation states that package should work with Angular 2+

Minimal reproduction of the problem with instructions

Change described package to 4.1.2 with CLI 1.0.0-beta.28.3 and typescript 2.3.2

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

using latest platform

Please tell us about your environment: Windows 10, Code

version ^2.0.0-beta.12

4.1.2

Chrome

typescript 2.3.2, ES6

node version 7.4.0