System Information
- Strapi Version: 4.5.3
- Node Version: v14.21.1
- Yarn Version: 1.22.19
I’m building a strapi plugin and Im trying to reuse some of the available componentes from content-manager in the admin directory inside the plugin files like this:
import NonRepeatableComponent from "@strapi/admin/admin/src/content-manager/components/NonRepeatableComponent";
But I’m getting this error
ERROR in ./node_modules/@strapi/admin/admin/src/content-manager/components/NonRepeatableComponent/index.js 22:4
Module parse failed: Unexpected token (22:4)
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