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

Cannot find module 'persian-date' #43

Closed
faridfedora opened this issue Jan 12, 2018 · 2 comments
Closed

Cannot find module 'persian-date' #43

faridfedora opened this issue Jan 12, 2018 · 2 comments

Comments

@faridfedora
Copy link

Hello, I installed persian-date with npm but when I wanna use your module I get this error:
Error: Cannot find module 'persian-date'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (/home/........./start.js:3:19)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

thanks in advance

@aminify
Copy link

aminify commented Jan 15, 2018

I've had this problem too
this can be fixed by adding "main": "dist/persian-date" to this project's package.json file
because I need this feature right now I'm going to fork this repo and do the change.
I named the package 'persian-jdate' so you can install it and do require('persian-jdate') if you wish.

@faridfedora
Copy link
Author

Thanks bro, it worked!

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