This JavaScript warning Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead occurs if there is a source map syntax defined in a JavaScript source, Which has been depreciated.
Message:
Warning: SyntaxError: Using //@ to indicate sourceURL pragmas
is deprecated. Use //# instead
Warning: SyntaxError: Using //@ to indicate sourceMappingURL
pragmas is deprecated. Use //# instead
Error Type:
This is a warning that a SyntaxError has occurred. JavaScript execution won't be halted.
Cause of Error: Somewhere in the code, there is a source map syntax used in a JavaScript source, Which is depreciated.
Example 1: In this example, the sourceURL is used with @, Which is depreciated.
HTML
Output:
Warning: SyntaxError: Using //@ to indicate sourceURL
pragmas is deprecated. Use //# instead
Example 2: In this example, the sourceMappingURL is used with @, Which is depreciated.
HTML
Output:
arning: SyntaxError: Using //@ to indicate sourceMappingURL
pragmas is deprecated. Use //# instead
Reference link: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Deprecated_source_map_pragma
Recommended Posts:
- JavaScript SyntaxError - Applying the 'delete' operator to an unqualified name is deprecated
- JavaScript SyntaxError - "0"-prefixed octal literals and octal escape sequences are deprecated
- JavaScript SyntaxError - "use strict" not allowed in function with non-simple parameters
- JavaScript ReferenceError Deprecated caller or arguments usage
- JavaScript Warning - Date.prototype.toLocaleFormat is deprecated
- Why to use .html instead of .htm extension?
- Why use Guzzle Instead of cURL in PHP ?
- HTML | Deprecated Tags
- JavaScript SyntaxError "variable" is a reserved identifier
- JavaScript SyntaxError: Unterminated string literal
- JavaScript SyntaxError - Invalid regular expression flag "x"
- JavaScript SyntaxError - Missing ) after argument list
- JavaScript SyntaxError - Missing ) after condition
- JavaScript SyntaxError - Missing ':' after property id
- JavaScript SyntaxError - Missing ; before statement
- JavaScript SyntaxError - Missing = in const declaration
- JavaScript SyntaxError - Missing ] after element list
- JavaScript SyntaxError - Missing formal parameter
- JavaScript SyntaxError - Missing name after . operator
- JavaScript SyntaxError - Missing variable name
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


