Closed acoard closed 6 years ago
Thanks @acoard for reporting, I've recreated the issue as reported.
This has been resolved by Yiling in version 2.0.8. Just update your package.json and you're good to go.
Note: README has not been updated, so look at angular-scaffold-captcha for example on how to integrate.
Versions Ran in the the folder of a fresh clone of angular-scaffold
Current Behaviour
With the widget installed and used in bcgov/angular-scaffold the
ng build --prod
command fails with the following error:This command also happens if you run
ng build --aot=true
. The--prod
flag is shorthand for a bunch of other flags, and after some trial and error I found out it was only the --aot flag which was an issue. (ng build --prod --aot=false
compiles fine).Desired Behaviour
An angular-scaffold project can run
ng build --prod
when using the CAPTCHA widget.Steps to Reproduce
yarn add git+https://github.com/bcgov/MyGovBC-CAPTCHA-Widget.git
CaptchaComponent
toapp.module.ts
, copying directly from the readme.app.component.html
, replacing<router-outlet>
with the CAPTCHA snippet from the readme.ng build --prod
If you have any questions let me know. The above notwithstanding it's a great widget, thanks for making it.