question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notifications are disabled - Windows 10

See original GitHub issue
  • Laravel Mix Version: 6.0.11 (npm list --depth=0)
  • Node Version (node -v): 15.8.0
  • NPM Version (npm -v): 7.5.1
  • OS: Windows 10

Description:

Laravel build notifications got disabled by itself - not sure what exactly happened and now when I run ‘npm run watch’ in my project folder I get the following message.

Notifications are disabled Reason: DisabledForApplication Please make sure that the app id is set correctly. Command Line: C:\wamp64\www\sterlingsilver\wp-content\themes\woocommerce-theme\node_modules\node-notifier\vendor\snoreToast\snoretoast-x64.exe -appID “Laravel Mix” -pipeName \.\pipe\notifierPipe-abb01a42-3adc-468c-a18a-8e2066933787 -p C:\wamp64\www\sterlingsilver\wp-content\themes\woocommerce-theme\node_modules\laravel-mix\icons\laravel.png -m “Build successful” -t “Laravel Mix”

I’ve tried uninstalling node.js, removing nodejs directories, removing nodejs from Path variable and reinstalling nodejs but to no avail.

npm -v = 7.5.1 node -v = 15.8.0 OS = Windows 10

Steps To Reproduce:

Following are my webpack.mix.js and package.json file content

webpack.mix.js – const mix = require(‘laravel-mix’); mix.js(‘src/app.js’, ‘./’) mix.sass(‘src/app.scss’, ‘./’,[]) mix.options({ processCssUrls: false }); mix.sourceMaps()

package.json –

{ “private”: true, “scripts”: { “dev”: “npm run development”, “development”: “mix”, “watch”: “mix watch”, “watch-poll”: “mix watch – --watch-options-poll=1000”, “hot”: “mix watch --hot”, “prod”: “npm run production”, “production”: “mix --production” }, “devDependencies”: { “axios”: “^0.21”, “laravel-mix”: “^6.0.11”, “lodash”: “^4.17.19”, “mini-css-extract-plugin”: “^1.3.6”, “postcss”: “^8.1.14”, “resolve-url-loader”: “^3.1.2”, “sass”: “^1.32.7”, “sass-loader”: “^8.0.2” }, “dependencies”: { “bootstrap”: “^4.6.0”, “cross-env”: “^7.0.3”, “jquery”: “^3.5.1”, “npm”: “^7.5.4”, “popper.js”: “^1.16.1”, “postcss-loader”: “^5.0.0” } }

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:33

github_iconTop GitHub Comments

34reactions
lianmaymesicommented, Nov 24, 2021

Finally, the permanent solution,

  1. Remove Enable key from the Registry, HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Laravel Mix

  2. Find wpndatabase.db from the below path, and open with any of your DB editors (I used HeidiSQL)

C:\Users\<Username>\AppData\Local\Microsoft\Windows\Notifications

  1. Check the NotificationHandler table and identify Laravel Mix under PrimaryId column. Just delete the entire column row.

And it is… 😃

I hope it helps everyone.

19reactions
alikashficommented, Apr 14, 2021

@piljac1 @bzioni hi guys. i found something! if we change appID from 'Laravel Mix' to (for example) 'Laravel Mix Plus' in node_modules\laravel-mix\src\components\Notifications.jsproblem solves!

let AutomaticComponent = require('./AutomaticComponent');

class Notifications extends AutomaticComponent {
    /**
     * webpack plugins to be appended to the master config.
     */
    webpackPlugins() {
        if (Mix.isUsing('notifications')) {
            let WebpackNotifierPlugin = require('webpack-notifier');

            return new WebpackNotifierPlugin({
                appID: 'Laravel Mix Plus',

                title: 'Laravel Mix',
                alwaysNotify: Config.notifications.onSuccess,
                timeout: false,
                hint: process.platform === 'linux' ? 'int:transient:1' : undefined,
                contentImage: Mix.paths.root('node_modules/laravel-mix/icons/laravel.png')
            });
        }
    }
}

module.exports = Notifications;

i know this is not a true way but it works 😃) (i guess problem is deeply from SnoreToast). and i did it because of this first solution in Common Issues section in this page https://www.npmjs.com/package/node-notifier

and btw if after this you still couldn’t see mix notifications try rollback what you did in windows registery, by doing this: save below code in a somename.reg file and run it:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Laravel Mix]
"LastNotificationAddedTime"=hex(b):b0,98,72,ef,43,22,d7,01
"Enabled"=dword:00000001
  • sry for bad english 😔 hope it helps 😊
Read more comments on GitHub >

github_iconTop Results From Across the Web

Change notification and quick settings in Windows
Select Start > Settings > System > Notifications. Change notification settings. Do any of the following: Select Notifications to expand it, and turn ......
Read more >
How to Disable Notifications in Windows 10 | Tom's Hardware
How to Disable Notifications in Windows 10 ; 1. Open the Settings menu. ; 2. Navigate to System ; 3. Select Notifications &...
Read more >
How to Turn off Notifications on Windows 10 - Lifewire
To disable Chrome notifications in Windows 10, from a Chrome window, select Menu (three dots) > Settings > Privacy and Security > Site...
Read more >
How to Turn Off Notifications in Windows 10 in 2 Ways
3. A new menu will open. Near the top of this menu, there should be a toggle switch labeled, "Get notifications from apps...
Read more >
How to Disable Computer Notifications on Windows
Open the “Notifications & actions settings” menu option from the search box. In Windows 11, you can also navigate to it from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found