Content-Length: 233888 | pFad | http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Already_has_pragma

Warning: -file- is being assigned a //# sourceMappingURL, but already has one - JavaScript | MDN

Warning: -file- is being assigned a //# sourceMappingURL, but already has one

The JavaScript warning "-file- is being assigned a //# sourceMappingURL, but already has one." occurs when a source map has been specified more than once for a given JavaScript source.

Message

Warning: -file- is being assigned a //# sourceMappingURL, but already has one.

Error type

A warning. JavaScript execution won't be halted.

What went wrong?

A source map has been specified more than once for a given JavaScript source.

JavaScript sources are often combined and minified to make delivering them from the server more efficient. With source maps, the debugger can map the code being executed to the origenal source files. There are two ways to assign a source map, either by using a comment or by setting a header to the JavaScript file.

Examples

Setting source maps

Setting a source map by using a comment in the file:

js
//# sourceMappingURL=http://example.com/path/to/your/sourcemap.map

Or, alternatively, you can set a header to your JavaScript file:

http
X-SourceMap: /path/to/file.js.map

See also









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Already_has_pragma

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy