Skip to main content
Messed with order
Source Link
Nestor
  • 559
  • 1
  • 9
  • 21

I'm coding a web app and I need to reuse a function which is included as a dependency of one of my dependencies. I know how to import the main dependency:

import {DataTable} from "simple-datatables";

But how can I import one of its dependencies? I already tried this one but didn't work:

I'm coding a web app and I need to reuse a function which is included as a dependency of one of my dependencies. I know how to import the main dependency:

import {DataTable} from "simple-datatables/helpers";

Thanks in advance!

I'm coding a web app and I need to reuse a function which is included as a dependency of one of my dependencies. I know how to import the main dependency:

import {DataTable} from "simple-datatables";

But how can I import one of its dependencies? I already tried this one but didn't work:

I'm coding a web app and I need to reuse a function which is included as a dependency of one of my dependencies. I know how to import the main dependency:

import {DataTable} from "simple-datatables/helpers";

Thanks in advance!

I'm coding a web app and I need to reuse a function which is included as a dependency of one of my dependencies. I know how to import the main dependency:

import {DataTable} from "simple-datatables";

But how can I import one of its dependencies? I already tried this one but didn't work:

import {DataTable} from "simple-datatables/helpers";

Thanks in advance!

Source Link
Nestor
  • 559
  • 1
  • 9
  • 21

How to import a dependecy's dependency?

I'm coding a web app and I need to reuse a function which is included as a dependency of one of my dependencies. I know how to import the main dependency:

import {DataTable} from "simple-datatables";

But how can I import one of its dependencies? I already tried this one but didn't work:

I'm coding a web app and I need to reuse a function which is included as a dependency of one of my dependencies. I know how to import the main dependency:

import {DataTable} from "simple-datatables/helpers";

Thanks in advance!