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

TypeError: rates.replaceAll is not a function #23

Closed
E-E-Ewoma-Zino opened this issue Feb 20, 2022 · 6 comments
Closed

TypeError: rates.replaceAll is not a function #23

E-E-Ewoma-Zino opened this issue Feb 20, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@E-E-Ewoma-Zino
Copy link

I am testing your package but I keep getting this error(TypeError: rates.replaceAll is not a function) when running the code from your docs

`const CC = require('currency-converter-lt')

let currencyConverter = new CC({from:"USD", to:"JPY", amount:100})

currencyConverter.convert().then((response) => {
console.log(response) //or do something else
})`
What to do now??

Screenshot 2022-02-20 012120

@paul-shuvo
Copy link
Owner

I think replaceAll was included in V8 8.5. Nodejs v15. I'll take a look into it. It should work for node version 15 and above.

@paul-shuvo paul-shuvo added the bug Something isn't working label Feb 23, 2022
@paul-shuvo paul-shuvo self-assigned this Feb 23, 2022
@2diegoduque
Copy link

Hi, I still get this error.

@paul-shuvo
Copy link
Owner

@2diegoduque what node version are you using?

@2diegoduque
Copy link

@paul-shuvo in my local 12.x environment, I updated it and it already worked, the problem is that I will use this code in an aws lambda that the maximum is 14.x

@paul-shuvo
Copy link
Owner

I've pushed changes to the latest release (1.3.0). Let me know if it works now; I'll close this issue.

@2diegoduque
Copy link

I've pushed changes to the latest release (1.3.0). Let me know if it works now; I'll close this issue.

Until now I had the opportunity to try, and it worked perfectly, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants