Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "piapps"

I have it set to use the non release candidate version and that seems to work ok for me. Are you saying that switching to the exact RC version would also fix the issue without all the other errors?

Tenant management is in the host level (null/empty tenant).

So if you logout of default tenant, then select tenant and empty the box then login you will be in the host level assuming you are running locally?

Tenant admin can already edit languages as far as I am aware (just checked v4.5.1).

Hi guys,

Just wondering if anyone else using the Angular Zero project v4.5.1 is getting an error when compiling it for production?

From a blank project (fresh download from aspnetzero.com) if i go straight to angular folder and run ng build --prod

I get an error in /node_modules/primeng/components/dropdown/dropdown.d.ts.Dropdown.html (6,13) Type string is not assignable to type boolean

Not sure if anyone else has experienced this but I have managed to fix it but had to do several things which may be useful for others

  • Open package.json in the angular project and change the version of primeng from ^4.2.0-rc.1 to ^4.2.0
  • Run yarn so it updates primeng (confirm it updated 'npm list primeng')
  • Recompile for production and you will be hit with more errors this time it will be something about expecting 1 argument but getting 2 in several of zeros ts files. They all have null as second argument so you can just delete the problematic argument.
  • Recompile and it should work, however upon visiting the site you will be hit with a wierd error in js console 'Error: Cannot enable prod mode after platform setup.'
  • Open package.json and change the version of ngx-bootstrap from ^1.9.1 to ^1.9.2
  • Run yarn and confirm its updated
  • Recompile and voila

DISCLAIMER: I have no idea if updating those two angular modules has any other side effects. I have tested various parts of Zero afterwards but not thoroughly.

I thought I would comment on what I did since it related to issues you were having to get it to compile.

So I ran yarn as per the normal instructions and made sure that npm start would run my project before i tried anything else.

Then I npm installed the angular-cli

Then I went to run ng build --prod and got the error from #2461@7cc86646-d789-4b09-b453-d727a9d6a818 which says I need to be in a angular-cli project to run it.

After a google found this <a class="postlink" href="http://stackoverflow.com/questions/39133782/you-have-to-be-inside-an-angular-cli-project-in-order-to-use-the-build-command-a">http://stackoverflow.com/questions/3913 ... -command-a</a>

Which basically says to run

npm install -g @angular/cli@latest

After doing that and running ng build --prod again everything compiled as expected, I have yet to release this to a server but it all compiled into dist folder as expected so maybe that will help someone

Showing 21 to 25 of 25 entries