System Information
- Strapi Version: 3.4.1
- Operating System: macOS
- Database: Mysql
- Node Version: 14
- NPM Version: 6.14
I’d like to customize the homepage of strapi and show a list of articles. Rather than create the list my self I looked at how the content types are made and I found the CustomTable
component. I’ve created the file ./admin/src/containers/HomePage/index.js
and I tried to import the component like that:
import CustomTable from 'strapi-plugin-content-manager/admin/src/components/CustomTable';
I launched the npm run develop
command and I’ve got the error:
error in ./node_modules/strapi-plugin-content-manager/admin/src/components/CustomTable/index.js
Module parse failed: Unexpected token (49:19)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| const isPublished = !isEmpty(cellData.published_at);
|
> return <State isPublished={isPublished} />;
| },
| },
@ ./.cache/admin/src/containers/HomePage/index.js 28:42-115
@ ./.cache/admin/src/containers/Admin/index.js
@ ./.cache/admin/src/containers/App/index.js
@ ./.cache/admin/src/app.js
The admin pages seem to work fine, is there something I do wrong or it requires a specific webpack build?
Thank you