I actually have no idea how this fixed it (perhaps I changed a pushKey to pushkey I’d missed earlier, but I added a console log to strapi/dist/core/registries/content-types.js to have a look at the content types
"use strict";
const _ = require("lodash/fp");
const index = require("../domain/content-type/index.js");
const utils = require("../utils.js");
const validateKeySameToSingularName = (contentTypes) => {
for (const ctName of Object.keys(contentTypes)) {
console.log(contentTypes)```
and saw that the formatting of my 2 plugin content-types was weird
```js
{
notification: {
schema: {
schema: [Object],
kind: 'collectionType',
collectionName: 'notifications',
info: [Object],
options: [Object],
pluginOptions: {},
attributes: [Object],
__filename__: 'schema.json'
}
},
pushkey: { schema: { schema: [Object] } }
}
{
notification: {
schema: {
schema: [Object],
kind: 'collectionType',
collectionName: 'notifications',
info: [Object],
options: [Object],
pluginOptions: {},
attributes: [Object],
__filename__: 'schema.json'
}
},
pushkey: { schema: { schema: [Object] } }
}
I then changed content-types/index.js back to js module.exports = { "notification": require('./notification'), "pushkey": require('./pushkey'), }; and it started working