Comments (17)
OK. I've published v0.3.1.
from vue-recaptcha.
OK. I'll close this issue.
from vue-recaptcha.
Can you provide a jsbin or jsfiddle to reproduce it?
Or a gist if you are using vue-recaptcha from npm.
Thanks.
from vue-recaptcha.
I have tried some possible ways, but I can't reproduce this error.
By the way, I noticed that my document is outdated. Prop key
have been renamed to sitekey
.
from vue-recaptcha.
Got the same error...
from vue-recaptcha.
I'll give you a gist asap
from vue-recaptcha.
Got the same problem with version 0.3.0.
v0.2.1 works ok
from vue-recaptcha.
@Ephasme @CinKon @hybaken
Hello, I really need someone help me to reproduce this.
Or I can't fix it.
from vue-recaptcha.
There appears to be a problem with the npm version of the package.
When installing directly from github (yarn add github:DanSnow/vue-recaptcha
), it works just fine. Except you have to import like import VueRecaptcha from 'vue-recaptcha/dist/vue-recaptcha'
.
from vue-recaptcha.
@jzelez
Got it. Thanks.
But I still can't get this error.
I think I can just change the main script in package.json
to dist/vue-recaptcha.js
.
from vue-recaptcha.
I've tested it some more. It isn't an issue with npm or anything... Sorry for false alarm.
The problem is definitely package.json pointing to a wrong file. Fix that, publish new version and all is good in the world. ;)
from vue-recaptcha.
There is now a problem when installing:
❯ yarn add vue-recaptcha
yarn add v0.18.1
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/vue-recaptcha/-/vue-recaptcha-0.3.1.tgz: invalid tar file".
❯ npm install vue-recaptcha
npm ERR! cb() never called!
from vue-recaptcha.
Oh. Maybe I shouldn't use yarn to publish it.
from vue-recaptcha.
I don't know why the tarball on npm is corrupt.
I publish it again with version 0.3.2
.
And I have tested it. It should work.
from vue-recaptcha.
Hmm.. now it installs, but gives the previous error Uncaught TypeError: this.getRecaptcha is not a function
when using import VueRecaptcha from 'vue-recaptcha'
.
If I changed it back to your compiled version (import VueRecaptcha from 'vue-recaptcha/dist/vue-recaptcha'
) then it works.
Package.json now points to main.js, which apparently doesn't compile as it should. I think you should point main
to dist/vue-recaptcha.js
.
from vue-recaptcha.
But I have change the entry point to `dist/vue-recaptcha.js
Here is package.json on unpkg.
Can you check which version you installed?
from vue-recaptcha.
Yup. It works now.. Seems yarn messed up my local cache. Sorry about that :)
Thanks! 👍
from vue-recaptcha.
Related Issues (20)
- useRecaptcha() is called without a provider HOT 4
- How to reset Checkbox?
- Nuxt3: Invisible recaptcha visible (dev & prod) HOT 3
- Object.hasOwn is not a function HOT 3
- how to implement in nuxt3 ? HOT 1
- Set recaptcha key dynamically
- Nuxt 3 disable recapthca when needed HOT 1
- Auto execute blocks default browser validation
- Wont working
- Error: Can't resolve '@unhead/vue' in '.../node_modules/vue-recaptcha/dist/script-manager' HOT 4
- When use useRecaptchaProvider it throw warning HOT 1
- Sitekey is unknown at the time of application start
- Package import specifier "#imports" is not defined in package HOT 5
- Nuxt 3 "Error: Invariant violation: Please load enterprise recaptcha script first"
- Hiding captcha when navigating with useRouter HOT 5
- get captcha token in TS file HOT 1
- Failed to resolve component: Checkbox HOT 3
- Unable to use vue-recaptcha(version-2.0.3) in my vue 2.7 project HOT 1
- Multiple library loads HOT 2
- Docs are down HOT 3
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.