When I replace the file contents with just an empty module.exports it gives me the following error:
TypeError: Cannot read properties of undefined (reading ││ 'contentTypes')
This is what i mean by “empty module.exports”:
module.exports = (plugin) => {
console.log('plugin', plugin);
};
The plugin does print, and the error proceeds.
I tried this because it more closely matches what’re on the official docs.