Next.js Discord

Discord Forum

Importing UI libraries

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
Hey, I have some issues with adding a CSS package to my app. Here's the code:
"use client"

import { Table, TableHead, TableRow, TableCell, TableBody } from "@aws-amplify/ui-react";
import '@aws-amplify/ui-react/styles.css'

export default function Leads() {
  return (

<Table
  caption=""
  highlightOnHover={false}>
  <TableHead>
    <TableRow>
      <TableCell as="th">Citrus</TableCell>
      <TableCell as="th">Stone Fruit</TableCell>
      <TableCell as="th">Berry</TableCell>
    </TableRow>
  </TableHead>
  <TableBody>
    <TableRow>
      <TableCell>Orange</TableCell>
      <TableCell>Nectarine</TableCell>
      <TableCell>Raspberry</TableCell>
    </TableRow>
    <TableRow>
      <TableCell>Grapefruit</TableCell>
      <TableCell>Apricot</TableCell>
      <TableCell>Blueberry</TableCell>
    </TableRow>
    <TableRow>
      <TableCell>Lime</TableCell>
      <TableCell>Peach</TableCell>
      <TableCell>Strawberry</TableCell>
    </TableRow>
  </TableBody>
</Table>
  
  );
}


and the error as image.
This seems to be related to webpack but how do I fix that?

0 Replies