xmaestro / angular2-recaptcha

Angular 2 : Typescript component for Google reCaptcha
ISC License
79 stars 30 forks source link

Angular 5: No SystemJS file #95

Open cbruce11 opened 6 years ago

cbruce11 commented 6 years ago

I have no SystemJS file to put the set up in and now I'm getting the following error:

're-captcha' is not a known element:

  1. If 're-captcha' is an Angular component, then verify that it is part of this module.
  2. If 're-captcha' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message
jgithaiga commented 6 years ago

You can import the module on angular-cli where you want to use it:

import { ReCaptchaModule } from 'angular2-recaptcha';

@NgModule({ 
imports: [...,ReCaptchaModule]
})