-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
importFromFigma unexpected fetch error #31
Comments
Update node, newer versions have built in fetch. |
https://nodejs.org/en/blog/announcements/v18-release-announce#fetch-experimental Node 18 fetch is experimental feature. And I think the lib should give a specific requirement of |
That's old news from 1.5 years ago. In newer versions it is no longer experimental, it is stable and doesn't require any flags. |
So lower node version developers only investigate and resolve the error by themselves. |
I agree, error could be made clearer. But there is no point in doing that. There is no excuse for using 2 years old version of node. |
When I use
importFromFigma
, it always throw a 404 error, after investigation, the real error is "ReferenceError: fetch is not defined"So, I think this lib should handle error more elegant, and give a specific requirement of
fetch
. I usecross-fetch
for now like:Or integrated
cross-fetch
?I can make a PR if possible.
The text was updated successfully, but these errors were encountered: