jayasurian123 / fen-validator

Validate the Chess FEN notation
10 stars 3 forks source link

TypeError: validateFEN is not a function #13

Closed corysimmons closed 3 years ago

corysimmons commented 3 years ago

The package on npm says the function isn't exported. Copying your README here:

image

corysimmons commented 3 years ago

Looks like you're exporting image

And the dist looks like it's getting bundled: image

Is it getting babelified correctly? Not sure it would matter. Even when I test using latest Node (15) locally it gives me the same err.

What am I overlooking? :D

jayasurian123 commented 3 years ago

hi @corysimmons I had updated the docs with the use case

const validateFEN = require('fen-validator').default;

Not sure why it's not getting added in the npm package!!

jayasurian123 commented 3 years ago

I have updated the patch so the docs would look good in npm also.

corysimmons commented 3 years ago

Thank you sir!