Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'cookiesCheckInterval' of undefined #26

Open
emanuelet opened this issue Nov 25, 2017 · 4 comments
Open

Cannot read property 'cookiesCheckInterval' of undefined #26

emanuelet opened this issue Nov 25, 2017 · 4 comments

Comments

@emanuelet
Copy link
Contributor

Hi, I'm getting the following error if I do or do not include the global config in the index.html.

I'm using Angular 5.0.3 and Angular CLI 1.5.3.

cookies-storage.js:20 Uncaught TypeError: Cannot read property 'cookiesCheckInterval' of undefined
    at new CookiesStorage (cookies-storage.js:20)
    at eval (cookies-storage.js:209)
    at Object.../../../../ngx-store/dist/src/utility/storage/cookies-storage.js (vendor.bundle.js:239)
    at __webpack_require__ (inline.bundle.js:55)
    at eval (index.js:7)
    at Object.../../../../ngx-store/dist/src/utility/index.js (vendor.bundle.js:223)
    at __webpack_require__ (inline.bundle.js:55)
    at eval (webstorage.js:6)
    at Object.../../../../ngx-store/dist/src/decorator/webstorage.js (vendor.bundle.js:151)
    at __webpack_require__ (inline.bundle.js:55)
CookiesStorage @ cookies-storage.js:20
(anonymous) @ cookies-storage.js:209
../../../../ngx-store/dist/src/utility/storage/cookies-storage.js @ vendor.bundle.js:239
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ index.js:7
../../../../ngx-store/dist/src/utility/index.js @ vendor.bundle.js:223
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ webstorage.js:6
../../../../ngx-store/dist/src/decorator/webstorage.js @ vendor.bundle.js:151
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ webstorage-utility.js:2
../../../../ngx-store/dist/src/utility/webstorage-utility.js @ vendor.bundle.js:271
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ config.helper.js:2
../../../../ngx-store/dist/src/config/config.helper.js @ vendor.bundle.js:104
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ config.js:6
../../../../ngx-store/dist/src/config/config.js @ vendor.bundle.js:119
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ index.js:1
../../../../ngx-store/dist/src/config/index.js @ vendor.bundle.js:127
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ webstorage.service.js:2
../../../../ngx-store/dist/src/service/webstorage.service.js @ vendor.bundle.js:215
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ index.js:1
../../../../ngx-store/dist/src/service/index.js @ vendor.bundle.js:175
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ index.js:3
../../../../ngx-store/dist/src/index.js @ vendor.bundle.js:159
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ index.js:1
../../../../ngx-store/dist/index.js @ vendor.bundle.js:96
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ app.module.ts:9
../../../../../src/app/app.module.ts @ main.bundle.js:90
__webpack_require__ @ inline.bundle.js:55
(anonymous) @ main.ts:4
../../../../../src/main.ts @ main.bundle.js:495
__webpack_require__ @ inline.bundle.js:55
0 @ main.bundle.js:510
__webpack_require__ @ inline.bundle.js:55
webpackJsonpCallback @ inline.bundle.js:26
(anonymous) @ main.bundle.js:1
@DanielKucal
Copy link
Member

There is some breaking change in Angular compiler between versions 4 and 5... I got the error when updated package to Angular 5 and tried to run it on project using Angular 4.

@VinceBT
Copy link

VinceBT commented Dec 19, 2017

Need this package to be compatible for Angular 5, it seems very promising

@DanielKucal
Copy link
Member

@emanuelet @VinceBT can you guys see if v1.2.5 works for you with Angular 5? Thanks in advance

@hudsonburgess
Copy link

Same problem -- Angular 5.1.2, Angular CLI 1.6.2, ngx-store 1.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants