catamphetamine / libphonenumber-js

A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript
https://catamphetamine.gitlab.io/libphonenumber-js/
MIT License
2.79k stars 216 forks source link

ReadMe instructions don't seem to match source code... #218

Closed amir-beheshty closed 6 years ago

amir-beheshty commented 6 years ago

I did the following per readme instructions: npm install libphonenumber-js --save

In JS file: import { parseNumber } from 'libphonenumber-js';

However I get the following error when I invoke parseNumber:

(0 , _libphonenumberJs.parseNumber) is not a function

The source code on Github does not match the source code I obtain after executing npm install ....

catamphetamine commented 6 years ago

That's strange. Because parseNumber is exported. You can make up a minimal sample project illustrating and issue, post it to github and post here the link with reproduction instructions.