I am using command "sencha app build testing" to deploy testing package.
I am getting following errors during creating testing build:
[WRN] C1000: Yui Compressor Warning (Trailing comma is not legal in an ECMA-262 object initializer => },) -- C:\localdevelopment\apps\pressflow\ne w\pulse\app\app\view\DDEditor.js:2663
[INF] Processing class inheritance graph
[INF] Processing instantiation refereces to classes and aliases
[WRN] C1000: Yui Compressor Warning (Trailing comma is not legal in an
ECMA-262 object initializer => },) -- C:\localdevelopment\apps\pressflow\ne w\pulse\app\app\view\DDEditor.js:2663
[INF] Processing source dependencies
[ERR] Circular requires reference :
...\touch\src\AbstractComponent.js
...\touch\src\Evented.js ->
...\touch\src\core\src\util\TaskMan
ager.js ->
...\touch\src\util\TaskRunner.js ->
...\touch\src\util\Format.js ->
...\touch\src\core\src\util\TaskMan
ager.js
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: The following error occurr
ed while executing this line:
[ERR] ...\.sencha\app\bui
ld-impl.xml:137: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.B
asicException: com.sencha.exceptions.ExCircularReference: Circular requires refe
rence for file ...\touch\src\core\s
rc\util\TaskManager.js (x-app-build#273) runAppBuild (x-app-build:273) [anon
ymous] (x-app-build:545) x_app_build (x-app-build:543) <script> (anonymous:1
)
Please help to resolve these errors ...
You have some typos in your code. That's what the
[WRN] C1000: Yui Compressor Warning (Trailing comma is not
legal in an ECMA-262 object initializer => },) --
C:\localdevelopment\apps\pressflow\ne
w\pulse\app\app\view\DDEditor.js:2663
is complaining. You have some extra commas somewhere in DDEditor.js.
The
[ERR] Circular requires reference :
says that you requiring extra classes in your project before you can use it. Take a look at this post
http://bugsdaily.com/sencha-extjs-4/extjs-circular-requires-reference.html
Related
I recently made a new branch in my angular project and am working on in for a bit. Now I wanted to build it for testing on smartphones. When using ng build --prod, I get the following error (ng build works tho!)
An unhandled exception occurred:
/Users/r/Documents/.../project/main-es2015.23a6f948094203a25f4a.js:
Property body expected type of array but got null See
"/private/var/folders/c5/y_n4tj316sq9x1nqx20qdlh40000gp/T/ng-FBFvv4/angular-errors.log"
for further details.
The angular-errors.log is not helpfull at all:
[error] TypeError:
/Users/r/Documents/.../project/main-es2015.23a6f948094203a25f4a.js:
Property body expected type of array but got null
at validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/definitions/utils.js:160:13)
at Object.validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/definitions/utils.js:229:7)
at validateField (/Users/r/Documents/.../project/node_modules/#babel/types/lib/validators/validate.js:24:9)
at Object.validate (/Users/r/Documents/.../project/node_modules/#babel/types/lib/validators/validate.js:17:3)
at NodePath._replaceWith (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/replacement.js:172:7)
at NodePath._remove (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/removal.js:57:10)
at NodePath.remove (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/removal.js:36:8)
at PluginPass.ForOfStatement (/Users/r/Documents/.../project/node_modules/#babel/plugin-transform-for-of/lib/index.js:206:16)
at newFn (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/visitors.js:175:21)
at NodePath._call (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:55:20)
at NodePath.call (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:42:17)
at NodePath.visit (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/path/context.js:92:31)
at TraversalContext.visitQueue (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:116:16)
at TraversalContext.visitSingle (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:88:19)
at TraversalContext.visit (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/context.js:144:19)
at Function.traverse.node (/Users/r/Documents/.../project/node_modules/#babel/traverse/lib/index.js:82:17)
Production Environment.prod.ts looks like this:
export const environment = {
production: true,
VERSION: require('../../package.json').version
};
I tried using the --source-map=true flag, but it is canceling building before its able to write the sourcemap.
I didnt put hands on my package.json since two month, but also tried deleting the node_modules and reinstall them.
I also tried changing rxjs and typescript versions, but no success
Im using angular -v 10.1.6, typescript -v 4.0.3, rxjs -v 6.4.5
What can I do??
Any help appreaciated!
I found a solution here https://github.com/angular/angular-cli/issues/16998.
My problem was using Labels. It appears that babel is having a bug with that.
I am trying to deploy my app on Heroku but I don't know why the bellow error occurs.
I have gem 'rails_12factor', group: :production so I don't use config.serve_static_assets = true and config.assets.initialize_on_precompile as in the documentation explained that they are not needed in Rails 4.
When I execute these two commands respectively:
bundle exec rake assets:precompile
RAILS_ENV=production bundle exec rake assets:precompile
I get this error.
DEPRECATION WARNING: The configuration option `config.serve_static_assets` has been renamed to `config.serve_static_files` to clarify its role (it merely enables serving everything in the `public` folder and is unrelated to the asset pipeline). The `serve_static_assets` alias will be removed in Rails 5.0. Please migrate your configuration files accordingly. (called from block in tsort_each at /usr/local/lib/ruby/2.2.0/tsort.rb:226)
I, [2016-06-14T13:21:21.336814 #10455] INFO -- : Writing /home/rails/Desktop/hammasir/public/assets/font-awesome.min-1c15db9e10c99a36820b80616445a837a002b3f3969047f3375fba65f8fef2ba.css
I, [2016-06-14T13:21:21.337563 #10455] INFO -- : Writing /home/rails/Desktop/hammasir/public/assets/font-awesome.min-1c15db9e10c99a36820b80616445a837a002b3f3969047f3375fba65f8fef2ba.css.gz
I, [2016-06-14T13:21:21.341449 #10455] INFO -- : Writing /home/rails/Desktop/hammasir/public/assets/bootstrap.min-139ad6ac9cbd7b8cd15fa3f80b9b69e3ead570cb9686b3bb42b73a19ed62dcef.css
I, [2016-06-14T13:21:21.343432 #10455] INFO -- : Writing /home/rails/Desktop/hammasir/public/assets/bootstrap.min-139ad6ac9cbd7b8cd15fa3f80b9b69e3ead570cb9686b3bb42b73a19ed62dcef.css.gz
I, [2016-06-14T13:21:21.400914 #10455] INFO -- : Writing /home/rails/Desktop/hammasir/public/assets/jquery.fancybox-9eb4dcf39f4ad63c3bff3f55e2a0e5e8a32578cc4553c94633ce0ccdc08c2bea.css
I, [2016-06-14T13:21:21.401335 #10455] INFO -- : Writing /home/rails/Desktop/hammasir/public/assets/jquery.fancybox-9eb4dcf39f4ad63c3bff3f55e2a0e5e8a32578cc4553c94633ce0ccdc08c2bea.css.gz
I, [2016-06-14T13:21:21.405283 #10455] INFO -- : Writing /home/rails/Desktop/hammasir/public/assets/animate-0af100ee0144b8c4dc6de8605097b0920d4ea4aad067cc34fbaa7ab525d4e6a8.css
I, [2016-06-14T13:21:21.405707 #10455] INFO -- : Writing /home/rails/Desktop/hammasir/public/assets/animate-0af100ee0144b8c4dc6de8605097b0920d4ea4aad067cc34fbaa7ab525d4e6a8.css.gz
rake aborted!
Sass::SyntaxError: Invalid CSS after "}": expected selector or at-rule, was "}"
(sass):86
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
I debugged and checked one of the files but I couldn't find any error like forgetting to use ), } or ; . Also, I cleaned the whole content of one of them and replace it by a simple CSS rule, but still I get the error!!
This error is also happening when I try to push my app to Heroku. Please, help me to understand what is the reason and its solution??
This is the answer I found, wishing it to be useful for others, too.
To solve the DEPRECATION WARNING, update your gems as expressed by:
Asset pipeline DEPRECATION WARNING tsort.rb:226
And about the main error, you should find which file causes the error exactly. The error output and mentioned files in it are misleading and not necessarily contain syntax error.
You can work with your assets.rb file to find which file (files) contains syntax error. Comment or remove all of the referred files in assets.rb except one, redo asset precompile command in your production mode:
RAILS_ENV=production bundle exec rake assets:precompile
and repeat it for all other css files to understand which one contains the error. This time the output of this command will be helpful and refer exactly to the problem. Then, it would be easy to find the error and fix it.
I'm trying to extend a third party class. The code is something like this. Note I'm specifying where to load openGL.view.
Ext.Loader.setPath({
'openGL.view': 'C:/Users/«username»/Documents/third-party/openGL/view/'
});
Ext.define('myOpenGL.view.Qxga',{
extend: 'openGL.view.Uxga',
alias: 'widget.qxga',
itemId: 'qxga',
requires: [
'openGL.view.Uxga',
'myOpenGL.view.QxgaController'
],
controller: 'QxgaController'
});
When I build it, I get errors like this:
[ERR] Failed to resolve dependency openGL.view.Uxga for file myOpenGL.view.Qxga
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : openGL.view.Uxga
[ERR]
[ERR] Total time: 6 seconds
[ERR] The following error occurred while executing this line:
C:\Users\«username»\Applications\Sencha\Cmd\5.1.0.26\plugins\ext\current\plugin.xml:403: The following error occurred while executing this line:
C:\Users\«username»\Documents\workspace\openGL\.sencha\app\build-impl.xml:378: The following error occurred while executing this line:
C:\Users\«username»\Documents\workspace\openGL\.sencha\app\init-impl.xml:303: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : openGL.view.Uxga
Some questions:
Why isn't it finding openGL.view.Uxga?
I've read about modifying build-impl.xml, but with various degrees of success. What would I have to do, and is there a way to do the same without having to modify the file? Say some kind of override or command line parameter?
If there is a way to do this using setPath, the third-party directory may not be in the same place. Is there a way to include a Windows environment variable or something similar?
Sencha Cmd doesn't know about the Ext.Loader.setPath call, Cmd doesn't execute the JavaScript. Instead, in your app.json you can add C:/Users/«username»/Documents/third-party to the classpath config. classpath is a comma-delimited (I think it may even be able to be an array these days) list of paths Cmd will use to inspect the files within it to search for Ext JS classes (or via certain comment tags like #require and #class).
"classpath": "app,C:/Users/«username»/Documents/third-party"
I have a Sencha Touch App and also a Sencha Touch Package with the following basic structure:
MyApp
/app
/packages/MyPackage
When I try to build the package by executing:
sencha package build
(inside packages/MyPackage)
I get the following error:
[ERR] Failed to resolve dependency Ext.data.writer.Writer for file Ext.ux.MyClass [ERR] [ERR] BUILD FAILED [ERR]
com.sencha.exceptions.ExNotFound: Unknown definition for dependency :
Ext.data.writer.Writer [ERR] [ERR] Total time: 1 second [ERR] The
following error occurred while executing this line:
/MyApp/packages/MyPackage/.sencha/package/build-impl.xml:137: The
following error occurred while executing this line:
/MyApp/packages/MyPackage/.sencha/package/js-impl.xml:32:
com.sencha.exceptions.ExNotFound: Unknown definition for dependency :
Ext.data.writer.Writer
MyClass extends Ext.data.writer.Writer, in the following way:
Ext.define('Ext.ux.MyClass', {
extend: 'Ext.data.writer.Writer',
alias: 'writer.myclass',
I understand that during the compiling process the source of the class Ext.data.writer.Writer cannot be determined. How can I solve this?
Thank you!
In your sencha.cfg you should set:
package.framework=touch
It will add the framework to the classpath
OK Guys, I was able to build my package by editing the following config file:
/MyApp/packages/MyPackage/.sencha/package/sencha.cfg
I added the touch framework to the package classpath.
Before:
package.classpath=${package.dir}/src
After
package.classpath=${package.dir}/src,${touch.dir}
Iam trying to generate an XText grammar from a simple ECORE.
Im following this turorial http://koehnlein.blogspot.com/2010/03/xtext-for-your-ecore-models.html
However when I try to run the generated workflow I actually get this error:
1 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering platform uri '/home /andrea/workspace'
85 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - Problems instantiating module org.xtext.example.mydsl.MyDsl: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: Problems instantiating module org.xtext.example.mydsl.MyDsl: java.lang.reflect.InvocationTargetException
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:90)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:73)
...
..
any idea?
The exception is about "org.xtext.example.mydsl.MyDsl" which is the language name of a default xText project.
What is the name of the ECore class defining your language?
I suppose it must be the same and at least exists.