{"id":24952,"library":"babel-mocha-es6-compiler","title":"babel-mocha-es6-compiler","description":"Babel Mocha ES6 Compiler is a deprecated Mocha compiler that registers Babel 6 with React JSX and ES6 support. No version updates since 2016; relies on older Babel 6 ecosystem. Not compatible with Babel 7+ or modern Mocha releases. For new projects, use @babel/register directly with Mocha's --require flag.","status":"deprecated","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/silentcloud/babel-mocha-es6-compiler","tags":["javascript","babel-register","mocha","es6","babel6","mocha compilers","babel-register-es6-react"],"install":[{"cmd":"npm install babel-mocha-es6-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add babel-mocha-es6-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-mocha-es6-compiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core Babel 6 registration; this package wraps babel-register for Mocha","package":"babel-register","optional":false}],"imports":[{"note":"The dot '.' acts as a wildcard for all file extensions. Using a specific extension like 'js' may cause issues with .jsx files.","wrong":"mocha --compilers js:babel-mocha-es6-compiler","symbol":"default","correct":"mocha --compilers .:babel-mocha-es6-compiler"}],"quickstart":{"code":"npm install babel-mocha-es6-compiler --save-dev \nmocha --compilers .:babel-mocha-es6-compiler","lang":"javascript","description":"Shows how to install the package and run Mocha tests with ES6+JSX support."},"warnings":[{"fix":"Use @babel/register and @babel/preset-env with Mocha --require instead.","message":"Package relies on Babel 6, which is end-of-life. Not compatible with Babel 7+.","severity":"deprecated","affected_versions":">=0"},{"fix":"Use --require and configure Babel explicitly (e.g., --require @babel/register).","message":"The --compilers flag in Mocha v8+ is deprecated, causing warnings. The package may fail silently.","severity":"gotcha","affected_versions":">=8"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install babel-mocha-es6-compiler --save-dev' in the project root.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'babel-mocha-es6-compiler'"},{"fix":"Use '--require @babel/register' and configure Babel presets separately.","cause":"Mocha v8+ removed --compilers support.","error":"TypeError: The 'compilers' option is deprecated. Use 'require' instead."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}