Results 1 to 5 of 5

Thread: Ext 6.2.1 app build: unknown definition for mixin named extjs-tab-panel-ui

  1. #1
    Sencha User
    Join Date
    Apr 2017
    Posts
    10

    Default Ext 6.2.1 app build: unknown definition for mixin named extjs-tab-panel-ui

    The problem has appeared after adding element with xtype "tabpanel" (theme-triton)

    app.framework.version = 6.2.1.167
    app.cmd.version = 6.2.2.36

    [ERR] unknown definition for mixin named extjs-tab-panel-ui : {application_path}/classic/sass/src/view/main/Main.scss:4
    [LOG] Build error for {workspace_path}/build/temp/production/{application}/sass/{application}-all.scss
    ===
    Code:
    [DEBUG] FileSystem - _open: "{workspace_path}/build/production/{application}/classic/resources/{application}-all.css" QMap(("mode", QVariant(QString, "w")))
    [DBG] exit code was : 3
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: PhantomJS sass build exited with code : 3
    [ERR]     at com.sencha.command.fashion.FashionCommand.runBuildPhantom(FashionCommand.java:108)
    [ERR]     at com.sencha.command.fashion.FashionCommand.runBuild(FashionCommand.java:56)
    [ERR]     at com.sencha.command.fashion.FashionCommand.execute(FashionCommand.java:47)
    [ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
    [ERR]     at com.sencha.cli.Command.dispatch(Command.java:43)
    [ERR]     at com.sencha.cli.Commands.dispatch(Commands.java:64)
    [ERR]     at com.sencha.command.Sencha.dispatch(Sencha.java:79)
    [ERR]     at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:124)
    [ERR]     at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:42)
    [ERR]     at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:34)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]     at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    [ERR]     at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]     at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [ERR]     at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]     at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [ERR]     at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR]     at com.sencha.ant.CallTask.execute(CallTask.java:137)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
    [ERR]     at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
    [ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
    [ERR]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR]     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR]     at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR]     at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR]     
    [ERR] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR]     at com.sencha.ant.AntScript.execute(AntScript.java:116)
    [ERR]     at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:104)
    [ERR]     at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:145)
    [ERR]     at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:282)
    [ERR]     at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:771)
    [ERR]     at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:118)
    [ERR]     at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:384)
    [ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
    [ERR]     at com.sencha.cli.Command.dispatch(Command.java:43)
    [ERR]     at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:282)
    [ERR]     at com.sencha.cli.Commands.dispatch(Commands.java:64)
    [ERR]     at com.sencha.cli.Commands.dispatch(Commands.java:64)
    [ERR]     at com.sencha.command.Sencha.dispatch(Sencha.java:79)
    [ERR]     at com.sencha.command.Sencha.main(Sencha.java:147)
    [ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    [ERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [ERR]     at java.lang.reflect.Method.invoke(Method.java:498)
    [ERR]     at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
    [ERR]     at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

    P.S. Mixin "extjs-tab-panel-ui" exists only for ~classic/theme-neutral/sass/src/tab/Bar.scss

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    My understanding is that this happens when you have changed the template application main view from a tab panel to some other component. There is a corresponding SCSS file for that class which references the tab-panel mixin. You should be able to resolve this by navigating to the sass/src/view/main/ directory and editing the file Main.scss to remove the reference to @include extjs-tab-panel-ui.

  3. #3
    Sencha User
    Join Date
    Apr 2017
    Posts
    10

    Default

    Thanks, Gary.

    Finally, I've found the solution in another topic:
    It has to be added Ext component into "require"-section of app.js

    The dirty solution:
    Ext.application({
    requires: [
    'Ext.*',
    ...
    ],
    ...
    });
    The actual should be (not workable):
    Ext.application({
    requires: [
    'Ext.tab.Panel',
    ...
    ],
    ...
    });

    Looks like it has to be defined something else.

  4. #4
    Sencha User
    Join Date
    Apr 2017
    Posts
    10

    Default

    But another error has appeared...

    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: failed optimizing ~/ext/modern/modern/src/MessageBox.js
    [ERR] at com.sencha.
    [ERR] tools.compiler.ast.js.BaseNodeVisitor.visit(BaseNodeVisitor.java:21)
    [ERR]
    [ERR] Total time: 21 seconds
    [ERR] The following error occurred while executing this line:
    ~.sencha/app/build-impl.xml:267: The following error occurred while executing this line:
    ~.sencha/app/js-impl.xml:83: com.sencha.exceptions.ExBuild: failed optimizing ~/ext/modern/modern/src/MessageBox.js

    What can be used instead of "Ext.MessageBox.alert(type, message);" ?
    Last edited by SlaWinner; 4 May 2017 at 10:03 PM. Reason: misprint

  5. #5
    Sencha Premium Member
    Join Date
    Sep 2014
    Posts
    87

    Default

    Have just reached this error. Any idea how to fix that ?

    Marten

    Quote Originally Posted by SlaWinner View Post
    But another error has appeared...

    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: failed optimizing ~/ext/modern/modern/src/MessageBox.js
    [ERR] at com.sencha.
    [ERR] tools.compiler.ast.js.BaseNodeVisitor.visit(BaseNodeVisitor.java:21)
    [ERR]
    [ERR] Total time: 21 seconds
    [ERR] The following error occurred while executing this line:
    ~.sencha/app/build-impl.xml:267: The following error occurred while executing this line:
    ~.sencha/app/js-impl.xml:83: com.sencha.exceptions.ExBuild: failed optimizing ~/ext/modern/modern/src/MessageBox.js

    What can be used instead of "Ext.MessageBox.alert(type, message);" ?

Similar Threads

  1. unknown definition for mixin named box-shadow
    By worenklein in forum Ext JS 6.x Q&A
    Replies: 10
    Last Post: 14 Feb 2018, 11:31 PM
  2. Replies: 2
    Last Post: 4 Jul 2016, 6:52 AM
  3. App Build Unknown Definition Problem
    By mjcee in forum Sencha Cmd
    Replies: 3
    Last Post: 7 Apr 2016, 11:46 AM
  4. Replies: 0
    Last Post: 14 Oct 2014, 11:21 PM
  5. Replies: 6
    Last Post: 27 Aug 2014, 12:00 PM

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
  •