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

can't import and use persianJs in reactjs #44

Open
whossein opened this issue Aug 20, 2018 · 3 comments
Open

can't import and use persianJs in reactjs #44

whossein opened this issue Aug 20, 2018 · 3 comments

Comments

@whossein
Copy link

i tried to import and use persianJs in reactjs

@TheYahya
Copy link
Collaborator

hi @whossein, thanks for you issue,
Can you show the sample code that dosen't work for you?

@whossein
Copy link
Author

whossein commented Aug 20, 2018

thanks for fast reply,code here for you:
import persianJs from "persianJs"; const test = persianJs("علي").arabicChar().toString(); alert(test);
and show Error,
Module not found: C:\project\node_modules\persianJs\persian.jsdoes not match the corresponding path on diskpersianjs.

and i tried
import * as persianjsfrom "persianjs"; but not worked but in https://www.npmjs.com/package/persianize module worked.

@afshinm afshinm closed this as completed Aug 20, 2018
@afshinm afshinm reopened this Aug 20, 2018
@safeamiiir
Copy link

Hi @whossein

Write it in this way:
import persianJs from 'persianjs'

(J in word persianJs should be small letter)

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

4 participants