You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my code after installing GOT I get the following error
Error: ENOENT: no such file or directory, open '/mypath/node_modules/http2/lib/index.js'
After installing http2, which is deprecated BTW, I get the following in the console:
./node_modules/http2/lib/protocol/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
./node_modules/keyv/src/index.js
Critical dependency: the request of a dependency is an expression
And this in the browser when calling the frontend:
Got is meant for Node.js. While it can work in the browser with the right polyfills, you're on your own support-wise. Try asking on Stack Overflow instead.
Describe the bug
GOT not working well with React Typescript. I don't know if this is a bug, or I haven't found the published solution.
Actual behavior
I'm developing an app with React and typescript and want to use GOT to access my remote API.
When I include :
in my code after installing GOT I get the following error
After installing
http2
, which is deprecated BTW, I get the following in the console:And this in the browser when calling the frontend:
Expected behavior
Nothing as it should be working ;)
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: