-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
Im trying to use the provider/hook but running into these errors upon compile:
I'm using it like this:
import { HCaptchaProvider, useHCaptcha } from '@hcaptcha/react-hcaptcha/hooks';Getting these errors:
ERROR in ./node_modules/@hcaptcha/react-hcaptcha/dist/esm/hooks/useHCaptcha.tsx 3:0-48
Module not found: Error: Can't resolve './Context.jsx' in '/<redacted>/node_modules/@hcaptcha/react-hcaptcha/dist/esm/hooks'
@ ./node_modules/@hcaptcha/react-hcaptcha/dist/esm/hooks/index.js 1:0-48 1:0-48
@ ./client/src/context/captcha.js 8:0-79 19:6-17 56:10-21 72:30-46
@ ./client/src/containers/Event/index.js 20:0-59 147:39-61
@ ./client/src/containers/EventContainer/index.js 18:0-39 102:35-40
@ ./client/src/router/main.js 8:0-57 83:40-54
@ ./client/src/app.js 13:0-39 123:34-44
@ ./client/src/index.js 12:0-24 22:43-46
ERROR in ./client/src/context/captcha.js 72:30-46
export 'HCaptchaProvider' (imported as 'HCaptchaProvider') was not found in '@hcaptcha/react-hcaptcha/hooks' (possible exports: useHCaptcha)
@ ./client/src/containers/Event/index.js 20:0-59 147:39-61
@ ./client/src/containers/EventContainer/index.js 18:0-39 102:35-40
@ ./client/src/router/main.js 8:0-57 83:40-54
@ ./client/src/app.js 13:0-39 123:34-44
@ ./client/src/index.js 12:0-24 22:43-46
ERROR in ./node_modules/@hcaptcha/react-hcaptcha/dist/esm/hooks/index.js 2:0-50
Module not found: Error: Can't resolve './Provider.jsx' in '/<redacted>/node_modules/@hcaptcha/react-hcaptcha/dist/esm/hooks'
@ ./client/src/context/captcha.js 8:0-79 19:6-17 56:10-21 72:30-46
@ ./client/src/containers/Event/index.js 20:0-59 147:39-61
@ ./client/src/containers/EventContainer/index.js 18:0-39 102:35-40
@ ./client/src/router/main.js 8:0-57 83:40-54
@ ./client/src/app.js 13:0-39 123:34-44
@ ./client/src/index.js 12:0-24 22:43-46In the dist output i'm seeing a line like this:
export { HCaptchaProvider } from "./Provider.jsx";But Provider.jsx does not exist, only Provider.js. Similar issue with Context.jsx not existing.
Metadata
Metadata
Assignees
Labels
No labels