Create model component from plugin directory

Hello,

I’m testing create external plugins for strapi. I would like create a model with component in my plugin directory but /plugins/MyPlugin/components//.json doesn’t work.

Look my errors during npm run develop :
error Bootstrap function in admin failed
error TypeError: Cannot read property ‘primaryKey’ of undefined

It’s strange to can create model from a plugin but not create a component :thinking:

What is it possible ? And how ?

Thank you :slightly_smiling_face:

Strapi version : 3.4.1

2 Likes