CAPTCHA Widget is doesn't work with ng build --prod
, specifically the --aot
flag.
#3
Labels
ng build --prod
, specifically the --aot
flag.
#3
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.
The text was updated successfully, but these errors were encountered: