Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

RAD Tool: Argument of type 'string' is not assignable to parameter of type 'number'. #7300


User avatar
0
murphymj5209 created

i am on v7, no patches, with angular project and am getting this error message when using the power tools on the npm start : TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.


6 Answer(s)
  • User Avatar
    0
    yekalkan created

    This is duplicate of https://github.com/aspnetzero/aspnet-zero-core/issues/1059.

    We resolved it but it seems like it reappears in some situations. We'll investigate it, thank you for reporting.

  • User Avatar
    0
    murphymj5209 created

    just letting you know that I am still needing this fix.

  • User Avatar
    0
    yekalkan created

    Here are the steps to avoid this issue until we release the fix:

    1-) Find and open "aspnet-core\AspNetZeroRadTool\FileTemplates\Client\Angular\ComponentTemplate\PartialTemplates.txt" file in a text editor.

    2-) Remove those two sections:

    Line 12: { "type" : "byte", "content" : " max{{Property_Name_Here}}Filter : string = ''; min{{Property_Name_Here}}Filter : string = ''; " },

    line 48: { "type" : "byte", "content" : " this.max{{Property_Name_Here}}Filter == null ? '' : this.max{{Property_Name_Here}}Filter, this.min{{Property_Name_Here}}Filter == null ? '' : this.min{{Property_Name_Here}}Filter," },

    1. Save the file as "PartialTemplates.custom.txt". You will need to delete this new file after our next release.
  • User Avatar
    0
    murphymj5209 created

    In a very small case, this seemed to work. Thanks. What did i 'give-up' by taking out the lines of code? it seemed like the advanced filter still had the boolean become available.

  • User Avatar
    0
    murphymj5209 created

    I did not mention but i am not notified on the change, please let me know if there is something i need to set for when a question is asked. thanks

  • User Avatar
    0
    yekalkan created

    What did i 'give-up' by taking out the lines of code?

    Nothing. This is the true way of fixing this issue.

    I did not mention but i am not notified on the change, please let me know if there is something i need to set for when a question is asked.

    Do you mean email notification when an answer is added to your question?