Closed medram closed 1 year ago
styled-components
The import works normally on React dev mode, But I get an import error when I run npm run build, it can't import the DataTable (see the image)
npm run build
The import line is:
import DataTable from 'react-data-table-component'
Should be imported as intended, right?
Please help: @jbetancur @MaxInertia @ondratra
Thanks in advance.
it turns out react-app-rewired issue
Issue Check list
styled-components
(Not sure)Note: I'm using React with JS (not with Typescript).
Describe the bug
The import works normally on React dev mode, But I get an import error when I run
npm run build
, it can't import the DataTable (see the image)The import line is:
Expected behavior
Should be imported as intended, right?
Please help: @jbetancur @MaxInertia @ondratra
Thanks in advance.