angulartics / angulartics-mixpanel

Mixpanel plugin for Angulartics
MIT License
34 stars 27 forks source link

package.json file encoded with UTF-8 with BOM #27

Open RasmusTG opened 7 years ago

RasmusTG commented 7 years ago

Hi,

I am installing the package with yarn on a MAC, and when importing it and bundle with webpack, I get this error:

node_modules/angulartics-mixpanel/package.json (directory description file): SyntaxError: Unexpected token  in JSON at posit ion 0

If I change encoding to UTF-8 it works.

Could you please change the encoding of the package.json to just UTF-8.

Thanks Br. Rasmus

grantgeorge commented 7 years ago

@RasmusTG I forked and fixed this here:

https://github.com/grantgeorge/angulartics-mixpanel

usage in package.json:

"dependencies": {
  "angulartics-mixpanel": "grantgeorge/angulartics-mixpanel#a97fe77",
}
jnfeinstein commented 7 years ago

+1

grantgeorge commented 7 years ago

@jnfeinstein https://github.com/grantgeorge/angulartics-mixpanel/commit/a97fe772bd3772776a3139cdd80ee1c156524449

jnfeinstein commented 7 years ago

I'm using that and it fixes the issue. #28 should be merged and 0.1.3 should be re-released since it's currently unusable.