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

Module parse failed: Unexpected character '�' (1:2) #33

Open
markfaine opened this issue Oct 31, 2018 · 1 comment
Open

Module parse failed: Unexpected character '�' (1:2) #33

markfaine opened this issue Oct 31, 2018 · 1 comment

Comments

@markfaine
Copy link

Node 9.6.0

I'm not really doing anything fancy. This is enough to trigger the error:

const geoip2 = require('geoip2')
geoip2.init();

ERROR in ./node_modules/geoip2/lib/node_mmdb.node 1:2
Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./node_modules/geoip2/node-geoip2.js 2:11-42
@ ./src/index.js

@knoxcard
Copy link

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

2 participants