What does JSLint mean by this error? And how should it be rewritten?  Error: Problem at line 78 character 3: Move the invocation into the parens that contain the function:      })(jQuery);...
I'd like to use JSLint, but I am wary of tools that have access to my unfiltered source code. Is there an offline version or is there another similar tool that does "lint error checking" for JavaScript offline?  Edit: One with a GUI and t...
I have recently started developing another GWT module. So I created a package with all my new classes and one specific class that implements a new entrypoint. I modified  in my gwt.xml to my new entrypoint. When I compile, I get the following error:...
In my environment, if I create a class in JScript syntax:  class test{  }   and then save it to a file named "test.js" and run it with wscript, I get a Microsoft JScript "Syntax error" at line 1.   However, if I simply, say, write a f...
I just started using TypeScript and sometimes get compiler errors "use of undeclared variable". For example the following works in plain JavaScript :  var foo = {}; foo.bar = 42;   If I try to do the same in TypeScript it won't work and g...
Error TS1149: File name 'C:/Project/frontend/scripts/State.ts' differs from already included file name '../frontend/scripts/State.ts' only in casing.   I've triple checked the casing in our references and the actual files have...
I have following typescript code:   private addBrowserNameAsCssClassToHtmlTag(): void {   var rootElement = angular.element(document.querySelector("html"));   if (this.isOpera()) {     rootElement.addClass("opera-browser");   } else i...
I keep getting the following error:  Error Code: TS5055   Cannot write file C:/project/dir/server.js' because it would overwrite input file. Project: TypeScript/JavaScript Virtual Projects   I even tried changing my entry filename to nodeserver.j...
I noticed a strange thing when writing some JS code. This compile error seems to happen across multiple browsers (tested: Chrome, IE, Safari). I am in no hurry for a solution but I could not figure out why this code won't compile:      function f...
By mistake, I wrote:  ++number++;   and got this:  Uncaught ReferenceError: Invalid left-hand side expression in prefix operation   Why? I would except this to to first increment number by one and then increment number by one again....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.