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

cookie.set报错 #42

Open
jhooo opened this issue Jun 26, 2017 · 2 comments
Open

cookie.set报错 #42

jhooo opened this issue Jun 26, 2017 · 2 comments

Comments

@jhooo
Copy link

jhooo commented Jun 26, 2017

使用邮箱注册登录后就报错
Uncaught TypeError: cookie.set is not a function
at Object.exports.logInRedirectWithData (main.8e1ef4e1.js:1654)
at Object.ajax.emailSignIn.success (main.8e1ef4e1.js:4093)
at Reqwest._successHandler (main.8e1ef4e1.js:2494)
at success (main.8e1ef4e1.js:2558)
at XMLHttpRequest. (main.8e1ef4e1.js:2303)

报错行 倒数第四行
exports.logInRedirectWithData = function(account) {
var cookieConfigs, ref;
cookieConfigs = {
domain: config.cookieDomain,
expires: 7,
path: '/'
};
cookie.set('trackingPage', 'login', cookieConfigs);
cookie.set('trackingPageLabel', "from " + account, cookieConfigs);
cookie.set('trackingPageTime', (ref = window.performance) != null ? ref.timing.navigationStart : void 0, cookieConfigs);
return exports.signInRedirect();
};
貌似只有这个cookie.set报错,其他都不报错。这个可能需要 cookie.cookie.set ,求教中

@HarryF514
Copy link

遇到同样的问题啊

@stoneWeb
Copy link

stoneWeb commented Oct 19, 2018

me too! 所以你们怎么解决的
@jhooo 你的代码怎么不是coffee script的?

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

3 participants