Coder Social home page Coder Social logo

Comments (17)

DanSnow avatar DanSnow commented on September 2, 2024 1

OK. I've published v0.3.1.

from vue-recaptcha.

DanSnow avatar DanSnow commented on September 2, 2024 1

OK. I'll close this issue.

from vue-recaptcha.

DanSnow avatar DanSnow commented on September 2, 2024

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.

DanSnow avatar DanSnow commented on September 2, 2024

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.

DotCoyote avatar DotCoyote commented on September 2, 2024

Got the same error...

from vue-recaptcha.

Ephasme avatar Ephasme commented on September 2, 2024

I'll give you a gist asap

from vue-recaptcha.

hybaken avatar hybaken commented on September 2, 2024

Got the same problem with version 0.3.0.
v0.2.1 works ok

from vue-recaptcha.

DanSnow avatar DanSnow commented on September 2, 2024

@Ephasme @CinKon @hybaken
Hello, I really need someone help me to reproduce this.
Or I can't fix it.

from vue-recaptcha.

jzelez avatar jzelez commented on September 2, 2024

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.

DanSnow avatar DanSnow commented on September 2, 2024

@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.

jzelez avatar jzelez commented on September 2, 2024

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.

jzelez avatar jzelez commented on September 2, 2024

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.

DanSnow avatar DanSnow commented on September 2, 2024

Oh. Maybe I shouldn't use yarn to publish it.

from vue-recaptcha.

DanSnow avatar DanSnow commented on September 2, 2024

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.

jzelez avatar jzelez commented on September 2, 2024

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.

DanSnow avatar DanSnow commented on September 2, 2024

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.

jzelez avatar jzelez commented on September 2, 2024

Yup. It works now.. Seems yarn messed up my local cache. Sorry about that :)

Thanks! 👍

from vue-recaptcha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.