Dear all,
I have Strapi running in Docker with Postgres and Nginx in the same docker compose file. After entering the first entry in the DB Strapi started constantly restarting.
This is the error:
ERROR in ./src/api/whisky/routes/whisky.ts:7:43
TS2345: Argument of type ‘“api::whisky.whisky”’ is not assignable to parameter of type ‘ContentType’.
5 | import { factories } from ‘@strapi/strapi’;
6 |
7 | export default factories.createCoreRouter(‘api::whisky.whisky’);
| ^^^^^^^^^^^^^^^^^^^^
8 |
And this is the file it does not like ):
/**
- whisky router
*/
import { factories } from ‘@strapi/strapi’;
export default factories.createCoreRouter(‘api::whisky.whisky’);
Can you please advise the way of eliminating the issue?
This topic has been created from a Discord post (1232222903697805312) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord