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

ReferenceError: Cookies is not defined #12

Open
kersten opened this issue Sep 17, 2014 · 4 comments
Open

ReferenceError: Cookies is not defined #12

kersten opened this issue Sep 17, 2014 · 4 comments

Comments

@kersten
Copy link

kersten commented Sep 17, 2014

Hello, I've implemented userapp as wrote in the documentation, but I always get the error when app.run is called and the user module is injected.

angularjs: 1.2.25
userapp-angular: 2.0.4
requirejs: 2.1.15
I have already tried it with angluar-cookies, but this dosen't help. Do you know this problem?

Greetings

@kersten
Copy link
Author

kersten commented Sep 17, 2014

Fixed this error by myself, just required the original Cookies library and pasted it into the window.Cookies, maybou you could fix this. I think this is related to requirejs.

@thomas-tran
Copy link

Hi kersten,

I hit the same issue when using requirejs, would you help to share with me how to fix this?

Thanks
Thomas

@kersten
Copy link
Author

kersten commented Jan 13, 2015

Hi, I will check this and tell you when I found it ;) I think it was very easy. Just require the cookie lib and set it to the window object before You call app.run

@thomas-tran
Copy link

Hi,

I saw in the https://app.userapp.io/js/angularjs.userapp.js at the very bottom, there is a version of Cookie.js however I am not sure whether this is the correct library to use.
/*! Cookies.js - 0.3.1; Copyright (c) 2013, Scott Hamper; http://www.opensource.org/licenses/MIT */

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

No branches or pull requests

2 participants