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

Uncaught TypeError: ns.charCodeAt is not a function #50

Closed
ghost opened this issue Jul 26, 2017 · 13 comments
Closed

Uncaught TypeError: ns.charCodeAt is not a function #50

ghost opened this issue Jul 26, 2017 · 13 comments

Comments

@ghost
Copy link

ghost commented Jul 26, 2017

image

@thysultan
Copy link
Owner

thysultan commented Jul 26, 2017

The signature of the first argument is a string, so that's expected. What did you pass through to it?

@ghost
Copy link
Author

ghost commented Jul 26, 2017

im not sure,probably not this fun error;

this error was trow in styled-components which use stylis.js

@thysultan
Copy link
Owner

Have you tried to install the latest styled-components? Maybe it's fixed upstream, otherwise i'd suggest opening an issue there.

@ghost
Copy link
Author

ghost commented Jul 26, 2017

@ghost
Copy link
Author

ghost commented Jul 26, 2017

Yes, above issues is in styled-components with version 2.1.1 (latest) ,and work well in version 2.1.0

@ghost
Copy link
Author

ghost commented Jul 26, 2017

thanks for replied! i guess above issues will be styled-components self

@thysultan
Copy link
Owner

I feel like the issue could be a dependency cache issue with npm since the screenshot you posted doesn't look like the latest version of stylis.

Can you confirm that the dependency stylis is at version 3.2.8?

I say this because there was a release of styled-components that relies on a new feature of stylis, specifically this styled-components/styled-components#962. So if the stylis dependency did not update locally then that might be the problem.

@ghost
Copy link
Author

ghost commented Jul 26, 2017

image

@thysultan
Copy link
Owner

I meant node_modules/stylis/package.json If it's < 3.2.0 either try to npm install styled-components again/ npm install stylis to update it specifically.

@ghost
Copy link
Author

ghost commented Jul 26, 2017

image

@thysultan
Copy link
Owner

Since the error was from stringifyRules.js#L5, it was probably because the dependency did not update, can you still reproduce the error after updating?

@ghost
Copy link
Author

ghost commented Jul 26, 2017

yes the error still reproduce after updating

@thysultan
Copy link
Owner

I think it's exactly as philpl said, beyond that, a repo with the problem would help. But i don't think the problem is from this end.

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

1 participant