Error after plugin build, the problem with dependencies

System Information
  • Strapi Version: 4.5.6
  • Operating System: Mac OS
  • Database: PostgreSQL
  • Node Version: v16.17.1
  • Yarn Version: 1.22.18

I need help finding the dependency that is causing the error
I decided to publish a plugin for the community:

Afterwards I decided to rewrite the plugin on typescript and the error appeared
It only appears when the plugin is run from ./node_modules
From the /src/plugins folder everything is fine

Video

I can’t find any specifics in these errors :sweat_smile:

Error reproduction:

npx create-strapi-app@latest my-project --quickstart
yarn add strapi-plugin-google-map-picker
yarn develop --watch-admin

I’ll be glad for any tips!