Open YamabikoLab opened 1 year ago
Sadly this is still not working. I also do not understand why the error is handled separately from a successful response without data? To me it seems the API call for an unauthenticated user should result in a 403, not a 200 without content.
Following on from here, possibly relate, when running tsc
after a simple import of configureAuth I'm getting:
src/App.tsx:5:31 - error TS7016: Could not find a declaration file for module 'react-query-auth'. '/Users/wml/Projects/work/test-vite/vite-project/node_modules/react-query-auth/dist/index.mjs' implicitly has an 'any' type.
There are types at '/Users/wml/Projects/work/test-vite/vite-project/node_modules/react-query-auth/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-query-auth' library may need to update its package.json or typings.
5 import { configureAuth } from "react-query-auth";
~~~~~~~~~~~~~~~~~~
Found 1 error in src/App.tsx:5
hello @alan2207
renderError does not work on vite example. How should I implement this?
First, update the version of react-query-auth to v.2.2.0.
examples/vite/package.json
Add renderError.
examples/vite/src/App.tsx
A warning is displayed.
Is there a problem with renderError not being present in index.d.ts in node_modules?
examples/vite/node_modules/react-query-auth/dist/index.d.ts
How can the problem be resolved?