Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RasmusTG opened this issue Feb 24, 2017 · 4 comments
Open

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

RasmusTG opened this issue Feb 24, 2017 · 4 comments

Comments

@RasmusTG
Copy link

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
Copy link
Contributor

@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
Copy link

+1

@grantgeorge
Copy link
Contributor

@jnfeinstein
Copy link

jnfeinstein commented Jul 24, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants