Open fabiopolimeni opened 5 years ago
Hi @NathanaelA I'm having a similar issue. Since migrating to NativeScript 4 the plugin no longer works when bundling with Webpack. (tns run ios
still works flawlessly.)
I'm using getElementsByTagName()
and I'm importing at the top of my app.module.ts
file like this:
import "nativescript-dom";
I think the way I import it is the right one. I don't get the mentioned is not a function errors. However getElementsByTagName()
always returns an empty array when bundling with Webpack like this:
tns run ios --bundle --env.uglify --env.aot
Can you please take a look at it? I'm pretty sure something's broken here. If you cannot reproduce it in a Webpack build: Can you please share where and how you import?
Hi,
I am trying to use the plugin in its simplest form. Unfortunately, it seems that despite I can build an android app, as soon as I execute the code that contains one of these functions I get an error similar to this:
Neither of these importing methods work.
I use it like this
const navBarItems = DOM.getElementsByTagName("nav-bar-item");
This is my packege.json
Any idea what can be causing this? Thanks, Fabio