Error while building new plugin, cannot find dist/server

I run today into the same problem - you need to build your plugin first.

Add the following in your main package.json

 "scripts": {
    "prebuild": "cd src/plugins/<plugin name> && npm run build",
  },
4 Likes