danakt / spell-checker.js

Simple expandable tool for spell checking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bundling failed

tushgup opened this issue · comments

Hey! Thank you for working on this. Tried using this package today, ran into two errors:

  1. Shouldn't the import statement by 'const spell = require('spell-checker')' as compared to 'const spell = require('spell-checker-js')' mentioned in the documentation? - because the latter returns a haste-map error.

  2. If I change that, I run into a syntax error:
    image

@tushgup you have installed the wrong package (spell-checker instead of spell-checker-js). I think it was my fault that there was a mistake in the Readme. Try to install package via npm install spell-checker-js

Hi, I installed spell-checker-js but I'm running into the same haste-map error as before

image

@danakt yep, I'm getting the same error as @muditasisodia.

@tushgup @muditasisodia are you try to use the package in React Native, right?

yes

@muditasisodia Unfortunately, I didn't consider support of React Native while development of this package. The node.js API is different from the React Native API. Maybe rn-nodeify will help you.

oh! my bad. I recently used a different npm package which didn't specifically mention support for react-native, so I assumed that all of them would work.

My bad! Thanks for the quick response. Closing the issue. 👍