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
Uncaught TypeError: Object(...)isnotafunctionatuseSWR(use-swr.js:123)atuseRequest(useRequest.ts:26)atHome(index.tsx:13)atrenderWithHooks(react-dom.development.js:16260)atmountIndeterminateComponent(react-dom.development.js:18794)atbeginWork$1(react-dom.development.js:20162)atHTMLUnknownElement.callCallback(react-dom.development.js:336)atObject.invokeGuardedCallbackDev(react-dom.development.js:385)atinvokeGuardedCallback(react-dom.development.js:440)atbeginWork$$1(react-dom.development.js:25780)atperformUnitOfWork(react-dom.development.js:24695)atworkLoopSync(react-dom.development.js:24671)atperformSyncWorkOnRoot(react-dom.development.js:24270)atscheduleUpdateOnFiber(react-dom.development.js:23698)atupdateContainer(react-dom.development.js:27103)atreact-dom.development.js:27528atunbatchedUpdates(react-dom.development.js:24433)atlegacyRenderSubtreeIntoContainer(react-dom.development.js:27527)atObject.hydrate(react-dom.development.js:27591)atrenderReactElement(index.js:31)atdoRender$(index.js:38)attryCatch(runtime.js:45)atGenerator.invoke[as_invoke](runtime.js:271)atGenerator.prototype.<computed>[asnext](runtime.js:97)attryCatch(runtime.js:45)atinvoke(runtime.js:135)atruntime.js:170atnewPromise(<anonymous>)
at callInvokeWithMethodAndArg (runtime.js:169)
at AsyncIterator.enqueue [as _invoke] (runtime.js:192)
at AsyncIterator.prototype.<computed> [as next] (runtime.js:97)
at Object.push../node_modules/regenerator-runtime/runtime.js.exports.async (runtime.js:216)
at doRender (index.js:34)
at render$ (index.js:18)
at tryCatch (runtime.js:45)
at Generator.invoke [as _invoke] (runtime.js:271)
at Generator.prototype.<computed> [as next] (runtime.js:97)
at tryCatch (runtime.js:45)
at invoke (runtime.js:135)
at runtime.js:170
at new Promise (<anonymous>)
at callInvokeWithMethodAndArg (runtime.js:169)
at AsyncIterator.enqueue [as _invoke] (runtime.js:192)
at AsyncIterator.prototype.<computed> [as next] (runtime.js:97)
at Object.push../node_modules/regenerator-runtime/runtime.js.exports.async (runtime.js:216)
at render (index.js:18)
at next-dev.js:4
at fouc.js:4
I am getting this error implementing the axios-typescript and basic-typescript examples. I copied the files from lib into my page and copied the lines from the example page as well.
The useRequest hook does also throw a type error, as described here: #238
Expected behavior
Hook wouldnt throw an error and would respond with my api's data.
Btw. calling http://localhost:3000/api/posts will respond with my data as expected and browser-fetch does work.
The text was updated successfully, but these errors were encountered:
Hello there,
The Error
I am getting the following error message:
My Setup
I get this error with the following packages:
NodeJS 12, yarn 1.21.1, typescript 3.7.2
Reproduction
I am getting this error implementing the
axios-typescript
andbasic-typescript
examples. I copied the files from lib into my page and copied the lines from the example page as well.for example
The
useRequest
hook does also throw a type error, as described here: #238Expected behavior
Hook wouldnt throw an error and would respond with my api's data.
Btw. calling
http://localhost:3000/api/posts
will respond with my data as expected and browser-fetch does work.The text was updated successfully, but these errors were encountered: