Comments (3)
Owner has been unresponsive to my PR, #218, so I've resigned myself to building a local .tgz
package off my fork: https://github.com/aklinker1/vue-recaptcha-v3/tree/vue-3-support.
Checkout the README.md
of the fork for usage examples. If you don't want to use composition, it works the exact same as before. For a better typescript setup using the old apis, you will have to add a shim.
git clone https://github.com/aklinker1/vue-recaptcha-v3.git
cd vue-recaptcha-v3
# I don't think yarn has a pack command like NPM, the output works for both
npm install
npm pack
That should output vue-recaptcha-v3-1.9.0.tgz
. Copy it over to the project you want to use it in, I put it under local_modules/vue-recaptcha-v3-1.9.0-vue3.tgz
then you can add it like so:
# npm
npm install ./local_modules/vue-recaptcha-v3-1.9.0-vue3.tgz
# yarn
yarn add ./local_modules/vue-recaptcha-v3-1.9.0-vue3.tgz
I have no clue what the standard is for this, but I like local_modules
cause it sounds close to node_modules
. You can put it wherever though, but make sure it's in the project and commited so you don't have to do this again if you have to reclone the project.
from vue-recaptcha-v3.
Anyone has a sample of how to integrate this in vue3?
from vue-recaptcha-v3.
Thanks. Any working example would be good. I am getting this in my package.json
"vue-recaptcha-v3": "file:local_modules/vue-recaptcha-v3-1.9.0.tgz",
and its saying failed to compile..
./src/main.js
Module not found: Error: Can't resolve 'vue-recaptcha-v3' in '/Applications/MAMP/htdocs/vue/myfoldername/src'
I already have an App component so not sure how to do 2 app components in main.js which I believe this code should go..
from vue-recaptcha-v3.
Related Issues (20)
- Cannot use recaptcha on a specific component HOT 3
- Vue 3.0 composition HOT 3
- Property 'executeRecaptcha' does not exist on type 'IReCaptchaComposition | undefined' HOT 6
- Error "incorrect-captcha-sol" and "timeout-or-duplicate" HOT 3
- Latest version is not compatible to use with Vue2 HOT 2
- useReCaptcha composable returns undefined
- CSP violation in production HOT 4
- uncaught (in promise) null HOT 2
- CSP Issue HOT 1
- hideBadge and showBadge methods do not exist HOT 2
- Adding container creates reCAPTCHA ERROR: Invalid domain for site key
- Using with Nuxt3 HOT 13
- Is "login" part of the syntax? HOT 1
- Loading the recaptcha only in one page HOT 3
- --------
- Reduce unused JavaScript
- Load on local component instead of global HOT 2
- Documentation on how to access instance from Vue 3 Composition HOT 1
- Cannot destructure property 'executeRecaptcha' HOT 5
- Laravel app example for TypeScript
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-recaptcha-v3.