PDA

View Full Version : Unable to use folders or other files



mpe@iseo.fr
3 Jan 2018, 12:40 AM
Hi,

I want to use this sample to start my fiddel : https://fiddle.sencha.com/#fiddle/fqo&view/editor
But I create my fiddle (https://fiddle.sencha.com/#view/editor&fiddle/2bfk) it fails, can you explain me why ?

It only works when I put all code in a single file :(

Thanks,

Marc

bjdurham85
5 Jan 2018, 8:37 AM
Hi--,

If you trace the error it's expecting them to be under "app" /model. I forked your Fiddle so I could tinker but if you create an "app" folder under assets , move the files (and they need the .js extension) and require them it seems to be working.

https://fiddle.sencha.com/#view/editor&fiddle/2bjh

Let me know if this helps.

Best!
Bryan

mpe@iseo.fr
8 Jan 2018, 2:53 AM
Thanks a lot, it helps me !
I was missing the app folder :(

Marc