{"id":28130,"library":"rc-server","title":"rc-server","description":"Deprecated development server for react-component projects. Version 3.3.5 is the last release. It provided JSX support, autoprefixing, test runner integration (mocha-phantomjs), and CommonJS bundling for the browser. Replaced by rc-tools (specifically `rc-tools run server`). No longer maintained; users should migrate to rc-tools or modern alternatives like webpack-dev-server or Vite, which offer far better performance, HMR, and broader ecosystem support.","status":"deprecated","version":"3.3.5","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/react-component/rc-server","tags":["javascript","react","server","dev"],"install":[{"cmd":"npm install rc-server","lang":"bash","label":"npm"},{"cmd":"yarn add rc-server","lang":"bash","label":"yarn"},{"cmd":"pnpm add rc-server","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for rendering React components; required at runtime for JSX transformation","package":"react","optional":false}],"imports":[{"note":"CLI tool; no JavaScript import. Run with --harmony flag for older Node versions as documented.","wrong":"rc-server (without npx or the full path, may not be found in PATH)","symbol":"rc-server CLI","correct":"npx rc-server or node --harmony node_modules/.bin/rc-server"}],"quickstart":{"code":"// Create a basic rc-server project structure:\n// index.js\n/** @jsx React.DOM */\nvar Component = require('./lib/Component');\nmodule.exports = <Component />;\n\n// lib/Component.js\n/** @jsx React.DOM */\nvar React = require('react');\nvar Component = React.createClass({\n  render: function(){\n    return <div>Hello from rc-server</div>;\n  }\n});\nmodule.exports = Component;\n\n// package.json (partial)\n{\n  \"devDependencies\": {\n    \"rc-server\": \"^3.0.0\"\n  },\n  \"scripts\": {\n    \"start\": \"node --harmony node_modules/.bin/rc-server\"\n  },\n  \"config\": {\n    \"port\": 8001\n  }\n}\n\n// Install and run:\n// npm install\n// npm start","lang":"javascript","description":"Sets up a minimal rc-server project with a React component, package.json script, and server start command."},"warnings":[{"fix":"Migrate to rc-tools: install rc-tools, replace 'rc-server' with 'rc-tools run server' in scripts.","message":"This project is deprecated. Use rc-tools run server instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Upgrade to a modern server like webpack-dev-server or Vite that supports current Node.js LTS.","message":"Requires Node >=0.11 and --harmony flag; incompatible with modern Node versions (>=12) without additional transpilation.","severity":"breaking","affected_versions":">=3.0.0 <4.0.0"},{"fix":"Update source files to use modern JSX transform (React 17+'s automatic runtime) and a current build tool.","message":"Uses old JSX transform (@jsx React.DOM) incompatible with React 17+ and modern Babel presets.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run `npm install rc-server --save-dev` in your project directory, then use the command via npx or the node_modules/.bin path.","cause":"Missing local installation or global install without proper NODE_PATH.","error":"Error: Cannot find module 'rc-server'"},{"fix":"Use `npx rc-server` or run from project root with `node ./node_modules/.bin/rc-server`.","cause":"Not installed globally and not using npx.","error":"bash: rc-server: command not found"},{"fix":"Add `/** @jsx React.DOM */` at the top of every JSX file, or use a modern transpiler like Babel with the appropriate React preset.","cause":"JSX is not transpiled; the project may not have the @jsx pragma or Babel is missing.","error":"SyntaxError: Unexpected token <"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}