Has anyone seen an error like this? ```Cannot dest...
# javascript
s
Has anyone seen an error like this?
Copy code
Cannot destructure property `AbortController` of 'undefined' or 'null'
j
the object being destructured is of nullable type? if not, are you, by any chance, setting the object under “destructuring” to undefined from javascript ? that’s a typical ES6 destructuring error
s
the error looks to be coming from the abort-controller package
it seems like maybe it’s not happy with the environment I’m running it in
t
Do you use #ktor?
s
I do
t
nodejs
target?
s
yes
do you have a solution?
I’m about to lose a week of work to this and will have to re-do it in JS
t
cc @Ilya Goncharov [JB]
i
It is similar on https://github.com/ktorio/ktor/issues/1822 You can declare npm dependency manually, since 1.4 npm dependencies will be added transitively also
👍 1
s
I’m already adding the npm dependency manually
I was adding them to the node module. I’ll try declaring them in gradle
i
If it doesn’t help, I think it will be better to submit issue in ktor repo, possibly it is unknown issue