Plugin could not be found using local path

I am trying to create my own plugin but I get this error when I want to test

  Netlify Build
────────────────────────────────────────────────────────────────

❯ Version
  @netlify/build 27.1.3

❯ Flags
  dry: false
  offline: false

❯ Current directory
  C:\Users\Jarri\Documents\GitHub\v3\storefront

❯ Config file
  C:\Users\Jarri\Documents\GitHub\v3\netlify.toml

❯ Context
  production

────────────────────────────────────────────────────────────────
  Configuration error
────────────────────────────────────────────────────────────────

  Error message
  Plugin could not be found using local path: .plugins/netlify-plugin-reflect-run
  Cannot find module '.plugins/netlify-plugin-reflect-run'
  Require stack:
  - C:\Users\Jarri\AppData\Roaming\nvm\v16.14.0\node_modules\netlify-cli\node_modules\@netlify\build\src\utils\resolve.js

  Resolved config
  build:
    base: C:\Users\Jarri\Documents\GitHub\v3\storefront
    command: yarn build
    commandOrigin: config
    publish: C:\Users\Jarri\Documents\GitHub\v3\storefront\dist
    publishOrigin: config
  plugins:
    - inputs: {}
      origin: config
      package: .plugins/netlify-plugin-reflect-run

   ╭────────────────────────────────────────────────────────╮
   │                                                        │
   │    Please update netlify-cli to its latest version.    │
   │     If netlify-cli is already the latest version,      │
   │   please update your dependencies lock file instead.   │
   │                                                        │
   ╰────────────────────────────────────────────────────────╯

────────────────────┐
 Environment Info   │
────────────────────┘

  System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.5.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (102.0.1245.44)

netlify-cli/10.5.1 win32-x64 node-v16.14.0

netlify-cli/10.5.1 win32-x64 node-v16.14.0

The error message here I think is the key:

  Error message
  Plugin could not be found using local path: .plugins/netlify-plugin-reflect-run
  Cannot find module '.plugins/netlify-plugin-reflect-run'

This is referencing a directory named .plugins. In contrast, your screenshot of the directory structure shows a directory named just plugins (without the .).

So, the error here does appear to be that the reference to the file is incorrect (having a dot when it should not).

Do you know why it is adding that leading dot? Are you referencing it with the dot in netlify.toml for example? If so, removing that dot to correct the file reference should be the solution.