mperdeck / jsnlog.js

Tiny JavaScript logging library, simple and well documented. Lots of options to filter logging data.
js.jsnlog.com
Other
130 stars 44 forks source link

error TS1127: Invalid character #45

Closed ndevnani closed 7 years ago

ndevnani commented 7 years ago

Hi,

I installed jsnlog for node js + angular 4 env, and when I imported the log like this in my code:

import { JL } from 'jsnlog';

and compiled, I got bunch of errors like these:

ERROR in ...\node_modules\jsnlog\Definitions\jl.d.ts (1,1): error TS1127: Invalid character.

To fix it, I updated the jl.d.ts file and removed first few lines of comments, and the code compiled. I presume there is some invalid unicode in the file (I am using Windows 10), which caused the issue.

Thanks

mperdeck commented 7 years ago

This has now been fixed in release 2.24.1 (just gone live).