We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Hi again 👋
Just got around to updating to 2.0.1, but now I'm getting errors like the following:
Error: Cannot find module 'node_modules/lib-r-math.js/dist/esm/lib/distributions/binomial/dbinom' imported from node_modules/lib-r-math.js/dist/esm/lib/distributions/binomial/index.mjs
The issue seems to stem from the lack of a .mjs extension on the import/re-export statements in the compiled esm code, e.g.:
.mjs
// node_modules/lib-r-math.js/dist/esm/lib/distributions/binomial/index.mjs export { dbinom } from './dbinom'; export { pbinom } from './pbinom'; export { qbinom } from './qbinom'; import { rbinomOne } from './rbinom.mjs'; import { repeatedCall64 } from '../../r-func.mjs'; export function rbinom(n, size, prob) { return repeatedCall64(n, rbinomOne, size, prob); } export { rbinomOne };
should be
// node_modules/lib-r-math.js/dist/esm/lib/distributions/binomial/index.mjs export { dbinom } from './dbinom.mjs'; export { pbinom } from './pbinom.mjs'; export { qbinom } from './qbinom.mjs'; import { rbinomOne } from './rbinom.mjs'; import { repeatedCall64 } from '../../r-func.mjs'; export function rbinom(n, size, prob) { return repeatedCall64(n, rbinomOne, size, prob); } export { rbinomOne };
The same goes for the rest of the files in dist/esm/.
dist/esm/
The text was updated successfully, but these errors were encountered:
Thanks for finding the issue, looking into it
Sorry, something went wrong.
I altered the scripts/build.mjs to correct this problem
scripts/build.mjs
I released version 2.0.2 with the fix
Thanks for finding this issue
Excellent, that fixed it. Thank you!
Corrected in PR 193
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Hi again 👋
Just got around to updating to 2.0.1, but now I'm getting errors like the following:
The issue seems to stem from the lack of a
.mjs
extension on the import/re-export statements in the compiled esm code, e.g.:should be
The same goes for the rest of the files in
dist/esm/
.The text was updated successfully, but these errors were encountered: