Results 1 to 6 of 6

Thread: Missing essential files after npm run build

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    May 2014
    Posts
    7
    Vote Rating
    0
      0  

    Default Missing essential files after npm run build

    It generates the following files in /build directory:

    • app.js
    • app.js.map
    • index.html


    index.html refers to ext-react/ directory, which does not exist.

    Tested with clean install and https://docs.sencha.com/extreact/6.7...g_started.html

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    938
    Vote Rating
    -498
      0  

    Default

    Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated!

    Thanks again,

    Michele


  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    427
    Vote Rating
    -309
      0  

    Default

    Hello,

    Thank you for contacting Sencha Support!

    I request you to provide details of the build error for the reference of Engineering team for further troubleshooting.

    Regards,
    Kumar
    Sencha Support.

  4. #4
    Ext JS Premium Member
    Join Date
    May 2007
    Location
    Aalborg, Denmark
    Posts
    16
    Vote Rating
    0
      0  

    Default

    You need to make sure treeshaking is enabled when you build.

    Open package.json and make sure the build script has --env.treeshake=true in it.

    "scripts": {
    "build": "npm run clean && cross-env webpack --env.environment=production --env.treeshake=true",
    }

  5. #5
    Sencha User
    Join Date
    May 2014
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by chh View Post
    You need to make sure treeshaking is enabled when you build.

    Open package.json and make sure the build script has --env.treeshake=true in it.

    "scripts": {
    "build": "npm run clean && cross-env webpack --env.environment=production --env.treeshake=true",
    }
    Will try, thanks! How did you find out?

  6. #6
    Ext JS Premium Member
    Join Date
    May 2007
    Location
    Aalborg, Denmark
    Posts
    16
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by justdavey View Post
    Will try, thanks! How did you find out?
    The good old method of trial and error.

Posting Permissions

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