Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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')
});
like image 284
Nininea Avatar asked Jul 07 '14 07:07

Nininea


1 Answers

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'.

like image 185
Roman Ganz Avatar answered Oct 16 '22 13:10

Roman Ganz