Home > Parse Error > Warning Parse Error In

Warning Parse Error In

Contents

Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2 https://github.com/mitchellsimoens Think my support is good? Hire Sencha Services [email protected] Want to learn Sencha Touch 2? As a result, after Advanced optimization this may no longer refer to the object on which the function is defined. But in the case of sencha, squeezing every clue counts. have a peek here

Non-JSDoc comment has annota tions. html2js should update to a more recent version. Sign up for free to join this conversation on GitHub. How to fix it? This warning means that your code relies on an object property that may not be available after Advanced optimization. More Help

Grunt Ngtemplates Parse Error

Everything's set up at xeniawordart.com/WP. I tried toggling various settings that seemed potentially related and wasn't able to get it to work. For example, the following code produces this warning: // Produces JSC_SET_WITHOUT_READ warning: var obj = {goodProp: 1}; obj.unusedProp = 3; alert(obj.goodProp); If you get this warning, check to see whether you If you get a JSC_USELESS_CODE warning, look for typos that might change a useful statement into a useless statement. JSC_VAR_ARGS_MUST_BE_LAST: variable length argument must be last.

Thank you Reply With Quote 6 Jun 2014,6:22 PM #2 mysticav View Profile View Forum Posts Private Message Sencha User Join Date Mar 2007 Location Mexico Posts 528 Vote Rating 50 See Advanced Compilation and Externs for more information about externs. JSC_DUPLICATE_INPUT: Duplicate input: {File location} This error means that you have supplied the same source of JavaScript to the compiler more And I can't believe it but it has 'Running "html2js:main" (html2js) task Successfully converted 15 html templates to js.`. Gulp Minify-html Dividing by zero at runtime produces a runtime error.

I checked some variations:

does not hang - i get: Warning: Parse Error:

Use --force to continue.

takes slightly more time to current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Reload to refresh your session. https://github.com/ericclemmons/grunt-angular-templates/issues/102 up vote 0 down vote favorite I am trying to minify HTML files using grunt-contrib-htmlmin.However I keep getting a Parse Error.Below is the command line response.

For example, the following code produces this error: // Produces JSC_FRACTIONAL_BITWISE_OPERAND error: var x = 5 >> 2.5; alert(x); JSC_INDEX_OUT_OF_BOUNDS_ERROR: Array index out of bounds: {value of bad index}. Angular Templatecache https://github.com/angular-ui/bootstrap-bower/blob/master/ui-bootstrap-tpls.js angular.module("template/rating/rating.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/rating/rating.html", " aria-valuemin=\"0\" aria-valuemax=\"{{range.length}}\" aria-valuenow=\"{{value}}\">\n" + " > 32; alert(x); JSC_TRAILING_COMMA: Parse error. Did you mean to start it with '/**'?) -- compression-input:1123 [WRN] C1005: Closure Compiler Warning (Parse error.

Gulp Htmlmin Parse Error

However, with Advanced optimization turned on the compiler collapses obj.myMethod into the single symbol obj$myMethod to prepare for further compression. read this article well, I'm kinda rambling here, but yea, it'd be best if you took care of it ;) ericclemmons closed this May 26, 2014 This was referenced May 26, 2014 Closed minifier Grunt Ngtemplates Parse Error To prevent the JSC_UNSAFE_THIS warning for constructors, mark all constructors with the @constructor JSDoc annotation. Grunt-contrib-htmlmin ngtemplates: { bootstrap: { options: { module: 'ui-templates', standalone: true, htmlmin: { collapseBooleanAttributes: true, collapseWhitespace: true, removeAttributeQuotes: true, removeComments: true, removeEmptyAttributes: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true } }, cwd: 'src/libs/ui-bootstrap', src:

There’s no easy fix, since @expose is deprecated and shouldn't be used. navigate here Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 20 Star 444 Fork 106 karlgoldstein/grunt-html2js Code Issues 15 Pull requests 9 Projects Topic Info In: How-To and Troubleshooting 3 replies 2 participants Last reply from: James Huff Last activity: 8 months, 2 weeks ago 4.4.2 Status: resolved Topic Tagserrorinstallationlogin errorparse-errorwordpress Forum Search Search Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. Html2js

You signed in with another tab or window. grunt-angular-templates owner ericclemmons commented Sep 3, 2014 Can you post up the templatized version of rating.html? How to grep rows that have certain value in a specific column? Check This Out For example, the following code produces this warning: // Produces JSC_FUNCTION_MASKS_VARIABLE warning: var hello = 1; function hello() { alert('hi'); } This sort of duplicate name not only leads to confusing

So it maybe had something to do with my grunt version? Html-minifier For example, the function obj.myMethod() in the following code contains a dangerous this: // Produces JSC_UNSAFE_THIS warning: var obj = {}; obj.myMethod = function() { this.myProperty = 1; }; obj.myMethod(); alert(obj.myProperty); For example, the following code produces an error because 2 is the highest possible index in the array, but the expression x[3] uses an index of 3: // Produces JSC_INDEX_OUT_OF_BOUNDS_ERROR error:

This second operand indicates the amount of the shift, and must always be between 0 and 31.

If you want to use variable-length argument lists and also use JSC_WRONG_ARGUMENT_COUNT warnings to detect problems, you can use the variable-length parameter annotation to explicitly tell the compiler that a function Did you mean to start it with '/**'?) -- compression-input:1058 [WRN] C1005: Closure Compiler Warning (Parse error. But Advanced optimization may replace the property structure a.b.c with a single short symbol, and then get rid of a.b. below is how I have defined the htmlmin task.

Problems associated with booking flights inside another set of flights? Dozens of earthworms came on my terrace and died there Why does typography ruin the user experience? Note that the compiler only recognizes a function as a constructor if it is annotated with the @constructor JSDoc annotation, like this: /** * @constructor */ function MyFunction() { this.foo = this contact form Player claims their wizard character knows everything (from books).

I think the best answer is just to check the bug list. And after updating my node modules I get now a Recursive process.nextTick detected Message: `$ grunt html2js --stack (node) warning: Recursive process.nextTick detected. We recommend upgrading to the latest Safari, Google Chrome, or Firefox. We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

Nonetheless, I'll check this out. Well, off to tweak my site 🙂 Moderator James Huff @macmanx 8 months, 2 weeks ago You're welcome! This warning means that you call a constructor as if it were a normal function, without the new keyword. Have you tried using what's compiled for Bower?

Browse other questions tagged gruntjs grunt-contrib-htmlmin or ask your own question. Reload to refresh your session. The this thus means the same thing whether the function is obj.myMethod() or obj$myMethod(). JSC_USED_GLOBAL_THIS: dangerous use of the global this object. Let me know if I can do anything to help.

jrencz commented May 25, 2014 I can confirm removing htmlmin settings fixes the issue. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 24 Star 714 Fork 97 ericclemmons/grunt-angular-templates Code Issues 28 Pull requests 3 Projects I get the same error but it does seem to compile fine at a quick glance. All previous issues with hanging has been because of that parser.

What's this I hear about First Edition Unix being restored? Which is the most acceptable numeral for 1980 to 1989? Since JavaScript allows you omit the semicolon at the end of a line, leaving out the + breaks the code into two statements, the second of which has no effect. You signed out in another tab or window.