{"id":22150,"library":"rollup-plugin-notify","title":"rollup-plugin-notify","description":"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.","status":"maintenance","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/MikeKovarik/rollup-plugin-notify","tags":["javascript","rollup","plugin","rollup-plugin","notify","notification"],"install":[{"cmd":"npm install rollup-plugin-notify","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-notify","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-notify","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency - plugin requires Rollup >=0.60.0","package":"rollup","optional":true}],"imports":[{"note":"The package exports a single default function; named import will not work.","wrong":"import { notify } from 'rollup-plugin-notify'","symbol":"default export","correct":"import notify from 'rollup-plugin-notify'"},{"note":"Package does not ship TypeScript declarations; use @types/rollup-plugin-notify is unavailable.","wrong":"import notify = require('rollup-plugin-notify')","symbol":"TypeScript usage","correct":"import notify from 'rollup-plugin-notify'; // no types included"},{"note":"If using CommonJS (e.g., in rollup.config.js with require), the default export is under .default","wrong":"const notify = require('rollup-plugin-notify')","symbol":"CommonJS require","correct":"const notify = require('rollup-plugin-notify').default"}],"quickstart":{"code":"// rollup.config.js\nimport notify from 'rollup-plugin-notify';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife'\n  },\n  plugins: [\n    notify()\n  ]\n};","lang":"javascript","description":"Basic Rollup configuration to show OS notifications on build errors."},"warnings":[{"fix":"Consider using a more up-to-date notification plugin or fork.","message":"Peer dependency rollup@^1.4.1, but Rollup is now at v4. The plugin may not work correctly with newer versions.","severity":"deprecated","affected_versions":">=1.1.0"},{"fix":"Use other Rollup plugins for warning/log notifications.","message":"Notifications only appear on build errors, not warnings or info messages.","severity":"gotcha","affected_versions":"<=1.1.0"},{"fix":"Check node-notifier documentation for Linux support.","message":"On some Linux desktop environments, notifications may not work or require additional configuration of node-notifier.","severity":"gotcha","affected_versions":"<=1.1.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install' in your project root; if problem persists, add node-notifier explicitly: npm install --save-dev node-notifier","cause":"node-notifier is a dependency of rollup-plugin-notify, but sometimes not installed correctly.","error":"Error: Cannot find module 'node-notifier'"},{"fix":"Change to: import notify from 'rollup-plugin-notify' (or const notify = require('rollup-plugin-notify').default)","cause":"Importing the package incorrectly (named import instead of default).","error":"TypeError: notify is not a function"},{"fix":"Downgrade Rollup to version 1.x, or use an alternative plugin.","cause":"Installed Rollup version is incompatible.","error":"Error: Rollup version mismatch. rollup-plugin-notify requires rollup ^1.4.1"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}