NPM run dev not compiling assets with error notifications for user are disabled on Windows 10

Viewed 13911

I recently reinstalled the Windows 10 operating system,

Upon running npm-install command, npm installs correctly. However, on running the npm-run watch command or npm run-dev command, assets are not been compiled.

The following message is been displayed:

Notifications are disabled Reason: DisabledForUserPlease make sure that the app id is set correctly.

I have tried to reinstall and install Laravel 7, but the same issue persists. OS: Windows 10 build version 10240.

Screenshot of the message after running npm-run watch on CMD

Screenshot of the message after running npm-run watch on CMD

Windows Notifications settings

Windows Notifications settings

5 Answers

All you have to do is Enable windows notification:

Windows settings → Notifications & actions (on Windows 10)

And finally:

npm run dev

add mix.disableNotifications() to the webpack.mis.js file

I got the same error when I muted the notification from snoretoast-x64.exe (see your screenshot of the error) in the windows action center after running a watch.

I just had to enable notification from SnoreToast again in Windows settings → Notifications & actions (on Windows 10).

It went back to normal after that :)

u should run the command

npx mix 

it will even install the required dependencies like 'resolve-url-loader', 'sass' and 'sass-loader' the u can compile the assets u want. Here is the documentation , it is very simple explanation mix documentation . then u can run

npx mix watch

Its because your snoretoast notifications are disables. Go to you windows settings -> notifications and actions scroll down and enable the snoretoast notifications. please refer to the attached screenshot

Screenshot

Related