18 Jun 2013 8:43 PM #1
4.2.1 Theme harness / theme build example is broken
Generated a fresh workspace, then package as the Theming guide describes. Opening "custom-theme/build/example" throws this:
Failed to load resource file:///C:/Source/my-workspace/packa...le/manifest.js
Failed to load resource file:///C:/Source/my-workspace/packa...e/shortcuts.js
Uncaught ReferenceError: generateSlicerManifest is not defined render.js:375
19 Jun 2013 5:53 AM #2
workspace > packages > custom-theme > build > theme.html > line 24/25:
19 Jun 2013 12:21 PM #3
26 Jun 2013 8:19 AM #4
Not a Duplicate
This is not entirely a duplicate of bug SDKTOOLS-529. This mentions a second bug:
After applying the workaround for the "manifest.js" and "shortcuts.js" paths, there is still an error, and the page has no styles applied when loaded:
ReferenceError: generateSlicerManifest is not defined render.js (line 375) Ext.defer(generateSlicerManifest, 1);
30 Jul 2013 9:17 AM #5
Is there any work around for this?
Looks like this has been an issue for over 30 days with no movement.
Is this the only way to build a new theme? I am attempting to build my first theme but not sure the best way to approach it. I thought having the theme.html in good working order as far as customizing/ styling goes would be a good approach but if it's unusable I'm wondering how I should go about it?
Any direction /resources would be very helpful. I'm trying to customize based on neptune but it is a very slow process (tweaking variables, writing css, building, rinse & repeat).
I appreciate any guidance.
31 Jul 2013 6:16 AM #6
Outside of that minor issue, the only thing I've noticed is an unrelated framework bug with the button states. I haven't been scrolling too far past the fold though...so you might stumble upon something else.
1 Aug 2013 3:54 PM #7
skip.slice=true to avoid reference error during app build
This seems to be a fairly major oversight on Sencha's part. Surely some unit test could be added to make sure the generated themes would build properly?
In any case, while we're waiting for a fix, making the changes discussed above deal with one issue, and the issue with generateSlicerManifest can be worked around by adding the following line to your sencha.cfg file (my-custom-app/.sencha/app/sencha.cfg), causing the image slicing portion of the build to be skipped.
Hope this helps someone else avoid the pain I just went through to get this far.
8 Nov 2013 1:01 PM #8
Still not working... Is there an answer?
I am getting this very same error and I cannot find anything that explains how to get around it other than turning off slicing. I need the slicing to support IE, so I don't have that option.
Someone please post an answer to this!
3 Feb 2014 10:28 AM #9
Having the exact same issue with the theme harness myself. Getting the "generateSlicerManifest is not defined" error, and my slices aren't being created. The actual theme.html file renders even with this error, but this is a bug from what I can tell.