0

I have both libraries in my project, but I keep getting an error: "Can't resolve 'material-ui/core/Table".

Some people told me to delete one dependency, while others suggested me to delete the other one. I am lost at what I should do. Can anyone help me?

Simas Joneliunas
  • 2,890
  • 20
  • 28
  • 35
alexaf28
  • 3
  • 1
  • 1
    Could you please include an example of the relevant code? – Joe Lissner Feb 05 '20 at 20:53
  • 2
    You appear to be missing the "@". It should be `@material-ui/core/Table`. – Ryan Cogswell Feb 05 '20 at 21:03
  • Does this answer your question? [Difference between @material-ui vs material-ui (without at-sign)](https://stackoverflow.com/questions/56875498/difference-between-material-ui-vs-material-ui-without-at-sign) – showdev Feb 06 '20 at 00:38

1 Answers1

0

import { Table } from "@material-ui/core" or import Table from "@material-ui/core/Table"

Both should work fine.

Hasan Sefa Ozalp
  • 6,353
  • 5
  • 34
  • 45