GithubHelp home page GithubHelp logo

Comments (6)

DethAriel avatar DethAriel commented on July 27, 2024 1

plus, @afu1991 , it looks like you're using a different module than this one, try visiting its respective bugs page

from ng-recaptcha.

afu1991 avatar afu1991 commented on July 27, 2024

I have a same probleme too, when i launch 'ng serve', i have this error :

Uncaught ReferenceError: require is not defined at eval (eval at webpackJsonp.297.module.exports (addScript.js:9), <anonymous>:11:14) at eval (<anonymous>) at webpackJsonp.297.module.exports (addScript.js:9) at Object.186 (angular2-recaptcha.js?d64c:1) at __webpack_require__ (bootstrap 2eab723…:52) at Object.902 (addScript.js:10) at __webpack_require__ (bootstrap 2eab723…:52) at webpackJsonpCallback (bootstrap 2eab723…:23) at scripts.bundle.js:1

from ng-recaptcha.

DethAriel avatar DethAriel commented on July 27, 2024

Thank you guys for reporting this.
@afu1991 are you using SystemJS, too? Cause I see a __webpack_require__ there, which suggests otherwise. If you have an issue with webpack, please submit a different ticket

from ng-recaptcha.

DethAriel avatar DethAriel commented on July 27, 2024

@LucasFrecia I think your issue is that you configured SystemJS to use the "no-forms" version of recaptcha, but you're loading the RecaptchaModule, which is a forms one. Try loading RecaptchaNoFormsModule instead - see this plunker for reference.

Let me know if this resolves your issue

from ng-recaptcha.

DethAriel avatar DethAriel commented on July 27, 2024

@LucasFrecia the problem might also be that you haven't specified the default extension to use, like this:

System.config({ 
  // ...
  packages: { 
    'ng2-recaptcha': { 
      defaultJSExtensions: 'js',
    }, 
  },
}); 

from ng-recaptcha.

LucasFrecia avatar LucasFrecia commented on July 27, 2024

thanks @DethAriel :)

from ng-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.