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

npm Production Mode script error. ---> rRb is not defined #7137


User avatar
0
nicolaslau created

abpzero v7.0.0

When click Save button(every page include save), javascript erro is thrown.

app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1 Uncaught ReferenceError: rRb is not defined
    at Object.info (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)
    at o (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)
    at Object.abp.notify.info (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)
    at <anonymous>:31:28
    at c (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)
    at Object.fireWith [as resolveWith] (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)
    at Object.s.<computed> [as resolve] (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)
    at Function.handleResponse (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)
    at Object.<anonymous> (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)
    at c (app-layout-libs.min.js?v=TinVLFyB-mWKSW9vX5UXb19wmaRDSn8FOpY8WDnSF0I:1)

updated: I use a refresh source code. there is no my own codes. just click save button on every page(like Add Role). And i test it. in mode=development of npm, it works. but in production mode, it fails.


9 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, @nicolaslau are you using mvc + jquery?

    Can you also share the code that perform the save function?

    Are you able to reproduce this error on your development machine?

  • User Avatar
    0
    nicolaslau created

    @ryancyq yes, it mvc +jquery

    I use a refresh source code. there is no my own code. just click save button on every page(like Add Role).

    And i test it. in mode=development of npm, it works.
    but in production mode, it fails.

  • User Avatar
    0
    ryancyq created
    Support Team

    @nicolaslau have you ran npm run build and npm run create-bundles?

    also can you share how do you run the app in production mode?

    if you are using IIS, please follow the instructions at https://docs.aspnetzero.com/documents/aspnet-core-mvc/latest/Deployment-Mvc-Core-IIS

  • User Avatar
    0
    nicolaslau created

    @ryancyq

    Yes, I have ran npm run build and i confirm the file 'app-layout-libs.min.js' existed .

    I config IIS as the instruction you provided.

  • User Avatar
    0
    nicolaslau created

    up

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @nicolaslau

    Is it possible to send your project to [email protected] ?

  • User Avatar
    0
    nicolaslau created

    Hi @ismcagdas,

    Sent by [email protected]. Please check it.

    Thanks.

  • User Avatar
    0
    nicolaslau created

    @ismcagdas any feedback?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @nicolaslau

    Sorry for the delay, the issue has been fixed on https://github.com/aspnetzero/aspnet-zero-core/issues/2452