Possible issue updating to 4.0.6 from 4.0.5 and --watch-admin

Hey guys, the problem is persisting but I’ve found a workaround from github.

You’ll have to edit node_modules package, which isn’t great because you’ll have to redo it every time you update strapi. But it works for now.

Go to

node_modules/@strapi/strapi/lib/commands/develop.js

Then find (roughly line 52)

worker.send('kill');

Wrap that with

if (!watchAdmin) {
    worker.send('kill');
 }

Not 100% sure about the impact on anything, but since it’s dev and only affects when the --watch-admin parameter is set, I don’t think it’ll be a trainsmash.

1 Like