Cannot find module ‘@strapi/design-system/Layout’ or its corresponding type declarations

Steps to reproduce on my system :

  • Install yarn globally
  • Create a new app yarn create strapi-app strapi --quickstart --typescript
  • Create a superuser
  • Close the server
  • yarn strapi generate create a simple typescript plugin
  • In the plugin directory: yarn install then yarn add @strapi/design-system@1.6.1 then yarn build
  • In the root directory: yarn build will fail