JSHint Error : This character may get silently deleted by one or more browsers

Nininea picture Nininea · Jul 7, 2014 · Viewed 7.5k times · Source

line 1, col 0, This character may get silently deleted by one or more browsers. I get this error 4 times, for every .js file I've added.

For instance

error text:

'scripts/models/company.js: line 1, col 0, This character may get silently deleted by one or more browsers '

scripts/models/company.js content:

import DS from "ember-data";

export default DS.Model.extend({
name: DS.attr('string'),
address: DS.attr('string')
});

Answer

Roman Ganz picture Roman Ganz · Jul 23, 2014

This character is the UTF-8 BOM (Byte Order Mark), nothing to worry about. Just open the file in Notepad++ or another editor and change the encoding from 'UTF-8' to 'UTF-8 without BOM'.