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

Error importing roc #436

Open
gabrieldodan opened this issue Mar 14, 2024 · 0 comments
Open

Error importing roc #436

gabrieldodan opened this issue Mar 14, 2024 · 0 comments

Comments

@gabrieldodan
Copy link

Hi,

I am getting this error when I try to use the roc function/indicator. No problem with other indicators, RSI for example. Any idea? Thanks!

import {roc} from 'indicatorts';
        ^^^
SyntaxError: Named export 'roc' not found. The requested module 'indicatorts' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'indicatorts';
const {roc} = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Node.js v18.17.1
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

1 participant