Results 1 to 2 of 2

Thread: Using npm packages inside an Ext JS Application - Not working in 7.2

  1. #1

    Default Using npm packages inside an Ext JS Application - Not working in 7.2

    I followed exactly the guide Using npm - Adding npm packages (https://docs.sencha.com/extjs/7.2.0/..._packages.html) on a fresh generated modern app (ExtJs 7.2)
    but the moment npm package is not imported at all.
    Seems the index.js file is skipped out by the build process for some reason.

    Of course I've installed the required npm package (npm i --save moment in the node_modules directory).

    my index.js file is simply:
    Code:
    //this file exists so the webpack build process will succeed
    ModernApp.xMoment = require('moment') ;
    but in the debugger console I still get undefined trying to reference the ModernApp.xMoment global variable.

    What I wrong? There's some undocumented step that I miss? Or it's a bug?

  2. #2
    Sencha Premium User
    Join Date
    Mar 2015
    Location
    Belgrade
    Posts
    6

    Default

    I have the same problem? how is this resolved in ExtJs 7? I can't seem to load any 3rt party NPM modules?
    Anyone?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •