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

swisseph.julday is not a function #71

Open
chirag-chopra opened this issue Sep 5, 2020 · 2 comments
Open

swisseph.julday is not a function #71

chirag-chopra opened this issue Sep 5, 2020 · 2 comments

Comments

@chirag-chopra
Copy link

I am getting this issue when I tried to run this example
https://www.npmjs.com/package/swisseph#getting-sun-and-moon-position

swisseph.julday(date.year, date.month, date.day, date.hour, swisseph.GREG_CAL, function (julday_ut) {
^

TypeError: swisseph.julday is not a function
at Object. (/home/chirag/Desktop/backend_without_auth/index.js:41:10)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

idd

@gkostov
Copy link
Contributor

gkostov commented Feb 14, 2021

The example says swisseph.swe_julday and not swisseph.julday but you must have already found that out :)

@erikksuzuki
Copy link

I'm getting TypeError: swisseph.swe_julday is not a function having copied the same code from the README.MD

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

3 participants