Skip to content
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

Svelte module does not seem to work #78

Open
alexcohfr opened this issue Aug 2, 2024 · 3 comments
Open

Svelte module does not seem to work #78

alexcohfr opened this issue Aug 2, 2024 · 3 comments

Comments

@alexcohfr
Copy link
Contributor

Hello !

I'm trying to implement mcaptcha to a form for a website but I can't really use the code in the Svelte package README, I get this error:
[plugin:vite:import-analysis] Failed to resolve entry for package "@mcaptcha/svelte-glue". The package may have incorrect main/module/exports specified in its package.json.

I guess the package is a little old but does anyone know if an update is planned or if there is another way to add mcaptcha ?

(I can try to help if needed)

@realaravinth
Copy link
Member

Hi, I'm currently swamped with work, won't be getting back to mCaptcha till the third week of August. Any help is appreciated 😓

@alexcohfr
Copy link
Contributor Author

I'd be happy to help ! I'm new with svelte package development but if I can do anything tell me !

@alexcohfr
Copy link
Contributor Author

For anyone who wants to use the package, I found an alternative solution in the meantime:

Copy and paste Widget.Svelte, index.ts and types.ts into your lib folder in your Svelte project.
Then npm install @mcaptcha/core-glue

Now you just have to import the Widget in your +page.svelte and it seems to work for me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants