Results 1 to 3 of 3

Thread: Overrides files are not found at build

  1. #1
    Sencha User
    Join Date
    May 2016
    Posts
    5

    Default Overrides files are not found at build

    Version 5.1.1

    I want to add a basic override to the Floating util class. The project was not created by me, so i don't know if generate app was used. What i have:
    • [workspaceFolder]/overrides/util/Floating.js
    • The Floating.js folder is defined as 'Overrides.util.Floating'
    • In the app.js requires section i have added 'Overrides.util.Floating'
    • In .sencha/workspace/sencha.cfg i have added app.classpath=${app.dir}/overrides
    When i build the app i get the "Requirement had no matching files" error, pointing to Overrides.util.Floating in app.js

    I think a starting point here is the fact that my app.js file is inside the application folder, basically the path to app.js is [workingdirectory]/src/app.js.
    Last edited by fdrg; 21 Jun 2016 at 5:24 AM. Reason: mispelled a word

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962

    Default

    Hi--,

    You should just need to add to the overrides section of your app.json. Instead of the requires/classpath can you try putting it just in the overrides section (app.json)

    PHP Code:
    "overrides": [
       
    "overrides",
       
    "${workspace.dir}/overrides"
    ], 
    Bryan

  3. #3
    Sencha User
    Join Date
    May 2016
    Posts
    5

    Default

    Hi, bjdurham85 your answer is part of the solution to my problem, thanks!

    The issue was that in the application that i'm working on, the app.js, app.json, bootstrap.css etc. are in a folder called "src", placed under workspace directory. Having the override in [workspacedirectory]/overrides, didn't work, and i ended up placing the overrides folder in the app.dir, and in the json file i have

    "Overrides": "${app.dir}/overrides"

Similar Threads

  1. ext, buld not created within Project Folder
    By Yazid in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 7 Nov 2014, 8:40 AM
  2. 2.1.0,2-1 stable, buld 584
    By EAHC-IT in forum Sencha Architect 2.x: Help & Discussions
    Replies: 2
    Last Post: 22 Jan 2013, 10:14 AM
  3. [FIXED] Broken link - Guide overrides was not found.
    By finextjs in forum Sencha Architect 2.x: Bugs
    Replies: 2
    Last Post: 5 Oct 2012, 10:36 AM
  4. app is not found in view-Files on phonegap/Cordova
    By itinance in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 20 Jun 2012, 5:47 AM
  5. Sencha command new app: Files into sdk/src not found
    By acasaccia in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 3 May 2012, 5:16 AM

Tags for this Thread

Posting Permissions

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