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

autoLinkWithJSON is not a function #326

Open
individual8 opened this issue Jun 17, 2020 · 1 comment
Open

autoLinkWithJSON is not a function #326

individual8 opened this issue Jun 17, 2020 · 1 comment
Assignees

Comments

@individual8
Copy link

I've used twitter-text in my JS project before and for maintaining reasons updated the project today. twitter-text was updated from 3.0.1 to 3.1.0 as per package.json.

Now I get the following error: "twitterText.autoLinkWithJSON is not a function".

Obviously sth. has changed in the way the package works. I'm clueless what though. Any help appreciated.

@koki-miyazaki
Copy link

maybe same issue

Uncaught TypeError: twitter_text_1.parseTweet is not a function

It seems that's because package.json is a bit changed here
https://github.com/twitter/twitter-text/pull/310/files#diff-e51a40ac250c9696142466f114f754161e7e5102c0cdb5354548b757deb272f6R6

  "module": "dist/esm",

I'm not sure why the line is added, but when I removed the line (which means we use dist/index.js, not dist/esm/index.js), there's no error

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

No branches or pull requests

4 participants