Registry / devops / rollup-plugin-notify

rollup-plugin-notify

JSON →
library1.1.0jsnpmunverified

A Rollup plugin that displays build errors as native OS system notifications. Version 1.1.0 is the latest stable release; the package is in maintenance mode with no active development. It requires Rollup >=0.60.0 and depends on node-notifier internally. Unlike build logs, this plugin allows developers working in watch mode to see errors immediately without switching terminal windows. It extracts file, code snippet, and position from Rollup errors (including Babel) and formats them into concise 4-line notifications.

npm install rollup-plugin-notify
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-NOTI
R
rollup-plugin-notify
devopsjavascriptv1.1.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–223 runs
build_error
glibc
node 18–223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default export
✓ import notify from 'rollup-plugin-notify'
✗ import { notify } from 'rollup-plugin-notify'
The package exports a single default function; named import will not work.
TypeScript usage
✓ import notify from 'rollup-plugin-notify'; // no types included
✗ import notify = require('rollup-plugin-notify')
Package does not ship TypeScript declarations; use @types/rollup-plugin-notify is unavailable.
CommonJS require
✓ const notify = require('rollup-plugin-notify').default
✗ const notify = require('rollup-plugin-notify')
If using CommonJS (e.g., in rollup.config.js with require), the default export is under .default

Basic Rollup configuration to show OS notifications on build errors.

// rollup.config.js import notify from 'rollup-plugin-notify'; export default { input: 'src/index.js', output: { file: 'dist/bundle.js', format: 'iife' }, plugins: [ notify() ] };
Debug
Known issues
deprecatedPeer dependency rollup@^1.4.1, but Rollup is now at v4. The plugin may not work correctly with newer versions.
fix
Consider using a more up-to-date notification plugin or fork.
affects: >=1.1.0
gotchaNotifications only appear on build errors, not warnings or info messages.
fix
Use other Rollup plugins for warning/log notifications.
affects: <=1.1.0
gotchaOn some Linux desktop environments, notifications may not work or require additional configuration of node-notifier.
fix
Check node-notifier documentation for Linux support.
affects: <=1.1.0
Errors
Common errors & fixes
Error: Cannot find module 'node-notifier'
node-notifier is a dependency of rollup-plugin-notify, but sometimes not installed correctly.
fix
Run 'npm install' in your project root; if problem persists, add node-notifier explicitly: npm install --save-dev node-notifier
TypeError: notify is not a function
Importing the package incorrectly (named import instead of default).
fix
Change to: import notify from 'rollup-plugin-notify' (or const notify = require('rollup-plugin-notify').default)
Error: Rollup version mismatch. rollup-plugin-notify requires rollup ^1.4.1
Installed Rollup version is incompatible.
fix
Downgrade Rollup to version 1.x, or use an alternative plugin.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
rollupoptionalPeer dependency - plugin requires Rollup >=0.60.0
Agent activity
2 hits · last 30 days
node
2
Resources
rollup-plugin-notify — npm install rollup-plugin-notify · libregistry