Open Closed

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


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.


6 Answer(s)
  • 0
    ryancyq created

    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?

  • 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.

  • 0
    ryancyq created

    @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

  • 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.

  • 0
    nicolaslau created

    up

  • 0
    ismcagdas created

    Hi @nicolaslau

    Is it possible to send your project to info@aspnetzero.com ?