Ticket T1275935
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

DevExtreme - Custom bundle throws the "(0 , _index.addNamespace) is not a function" error

bundler command works but I got the JavaScript error at runtime

created a month ago (modified a month ago)

[DevExpress Support Team: CLONED FROM T1269453: The "devextreme-bundler" and "devextreme-bunder-init" commands are not working ]

Actually, I could make the bundler command works but I got the JavaScript error at runtime. Also after installed the hotfix, DevExtreme.AspNet.Mvc.dll version is showing as 24.2.4

  1. Error Clipboard-File-1.png
  2. What is exactly version of this dll?
    Clipboard-File-2.png
Show previous comments (1)

    Sorry, I cannot not share our project.

    Here is my steps:

    1. Install 24.2.3
    2. Install the hotfix
    3. Copy and reference DevExtreme.Aspnet.MVC.dll to our application
    4. Copy css & js file from installation folder (\DevExpress 24.2\DevExtreme\System\DevExtreme\Bin)
    5. Install NPM devextreme@24.2.5-build-25032-1935 as your suggest
    6. run devextreme-bundler-init
    7. run devextreme-bundler -> got the .js file
    8. Add the .js file from step #7 to asp.net c# Bundling
    9. then run and got that error

    Notes the configuration file after run the init command will generate with new path ( devextreme/common/core/localization) instead of devextreme/localization

    Clipboard-File-1.png

    Alisher (DevExpress Support) 25 days ago

      Hi,

      Thank you for your reply.

      I reproduced the issue. I will research it and update this ticket once I have news.

      Alisher (DevExpress Support) 20 days ago

        Hi Thanh Van,

        Thank you for your patience.

        I see that the issue occurs even if the bundle config was not modified. I created a separate public bug report and forwarded it to the team: DevExtreme - Custom bundle throws the "(0 , _index.addNamespace) is not a function" error.
        We will update the ticket once we have any news.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.