creativetimofficial / ct-paper-kit-2-pro-angular

Paper Kit 2 PRO Angular version
2 stars 6 forks source link

[Bug] Building applicaton to prod fails, Component - expected 2 arguments, but got 1. #10

Closed cudzich closed 4 years ago

cudzich commented 4 years ago

Version

latest

Reproduction link

None

Operating System

Ubuntu

Device

Server

Browser & Version

Server

Steps to reproduce

  1. copy source files into a directory
  2. in CMD, type ng build --prod

    What is expected?

    Expected output: static files after the application complies. I can serve the webpage without any issues. But I want to place it on my webserver, running the ng build --prod fails everytime.

    What is actually happening?

    ERROR in src/app/components/modal/modal.component.html(113,57): : Expected 2 arguments, but got 1.


Solution

Additional comments

cudzich commented 4 years ago

Problem: $ > ng build --prod Returns

ERROR in src/app/components/modal/modal.component.html(113,57): : Expected 2 arguments, but got 1.

Problem is in the following file \src\app\components\modal\modal.component.html on line 113 <button type="button" class="btn btn-primary btn-round" (click)="open(Login)">

Solution: <button type="button" class="btn btn-primary btn-round" (click)="open(Login, '')">

PS. BE AWARE: the support is non-existent.