Closed luixal closed 1 year ago
Hi luixal,
In your other question I see you got this to work with require. As such, I'm assuming this is a problem with your build setup, not with this project. To confirm the issue is not in this project, could you try importing any other project?
Hi,
I don't have this issue in other projects. Just for testing, I've added lodash to the project where I'm trying to use this package and I can import an use lodash without any problems.
Don't think it's a problem with my setup. Can you point me in a direction to find out what's happening?
Thanks!
@luixal try:
import degiroApi from 'degiro-api'
const DeGiro = (degiroApi as any).default
@luixal or try this
import degiroApi from 'degiro-api';
const DeGiro = (degiroApi).default;
Thanks @j-a-m-l and @yarcheek , that did work.
No idea why it is needed, but that should totally appear in the readme's example.
Close this from now. This repository is open to accept pull requests if you would to achieve that natively
Hi,
I just got started with DeGiro and this package... and I'm having some problems when using import:
If I try this code:
I just got the following error:
If I opt to use the
create
function, like this:I got this error:
I've tried the same code using Node 16.x and 18.x, any idea of what can be the problem?
Thanks for your work!