Results 1 to 2 of 2

Thread: sencha app build production app crashes when Ext.plugin.Viewport is removed from req

  1. #1
    Touch Premium Member pkellner's Avatar
    Join Date
    Sep 2008
    Location
    San Jose, California
    Posts
    834

    Default sencha app build production app crashes when Ext.plugin.Viewport is removed from req

    I'm running Cmd 6.1.0.65 and "sencha app build" with extjs 6.01

    I first create a new project with the command

    sencha -sdk C:\...\SenchaLibs\ext-6.0.1 generate app ConfApp C:\tempx\myApp

    From the scaffolded app, I remove the requires in Main.js that requires 'Ext.plugin.Viewport'.

    sencha app watch works fine (no errors or warnings)

    sencha app build production creates a build that errors with this:

    Code:
    http : //localhost:1318/ExtJSRuntime/SVCC/.js?_dc=20160304133921   404-file-not-found
    This seems quite un-intuitive. Is this a book or misunderstanding on my part? (took me at least 25 iterations to narrow it down, this is the last thing I would have guessed)
    Last edited by pkellner; 4 Mar 2016 at 4:59 PM. Reason: formatting

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579

    Default

    This is common for when the minified code tries to find a class that isn't available. When running across missing files like this, build a testing version so that the code is not minified and the error will be more obvious.

    Also make sure the classes you're using are required
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. Replies: 9
    Last Post: 21 Mar 2019, 12:29 AM
  2. Replies: 3
    Last Post: 25 Nov 2014, 4:32 AM
  3. [ST2.3.1] Ext.Viewport missing in production build
    By tschortsch in forum Sencha Cmd
    Replies: 3
    Last Post: 20 Jan 2014, 8:09 PM
  4. Production Build Crashes: "Cannot call method 'on' of undefined"
    By Mike6679 in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 10 Apr 2013, 10:50 AM
  5. Replies: 7
    Last Post: 23 Aug 2012, 9:44 AM

Posting Permissions

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