{"id":40708,"library":"chatbot-react-rollup","title":"React Library Starter with Rollup","description":"A boilerplate/template for creating modern React libraries using Rollup as the bundler, version 0.1.10. It supports CommonJS and ES module formats, TypeScript, CSS/SASS, Storybook, Jest with React Testing Library, and automatically externalizes peer dependencies. Key differentiators include built-in support for complex peer dependencies like Ant Design, and a focus on learning Rollup configuration. The package is not actively maintained (last update April 2023) and serves primarily as a starter kit rather than a production-ready library.","status":"maintenance","version":"0.1.10","language":"javascript","source_language":"en","source_url":"https://github.com/Angelus123/rollup-react-library-starter","tags":["javascript","react-template","react-library","typescript","react","template"],"install":[{"cmd":"npm install chatbot-react-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add chatbot-react-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add chatbot-react-rollup","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: required to use React components. Must be >=16.8.0.","package":"react","optional":false},{"reason":"Peer dependency: required for DOM rendering. Must be >=16.8.0.","package":"react-dom","optional":false},{"reason":"Peer dependency: example UI library. Can be replaced with other peer dependencies. Must be ^5.4.0.","package":"antd","optional":true}],"imports":[{"note":"ESM-only; package.json exports prefer ES module entry. CommonJS require may not work or require .default.","wrong":"const MyComponent = require('my-library')","symbol":"default","correct":"import MyComponent from 'my-library'"},{"note":"Named exports available; verify actual exports in your library's index.","wrong":"import Button from 'my-library'","symbol":"{ Button }","correct":"import { Button } from 'my-library'"},{"note":"Use `import type` for type-only exports to avoid bundling issues. Only if types are exported.","symbol":"type Props","correct":"import type { Props } from 'my-library'"},{"note":"ButtonProps is a type; use `import { ButtonProps }` if it's a runtime export, or `import type { ButtonProps }` if only a type. Check the library's export.","wrong":"import type { ButtonProps } from 'my-library'","symbol":"{ ButtonProps }","correct":"import { ButtonProps } from 'my-library'"}],"quickstart":{"code":"// Clone the template and install dependencies\ngit clone https://github.com/Angelus123/rollup-react-library-starter.git my-react-library\ncd my-react-library\nnpm install\n\n// Start Storybook in development mode to see components\nnpm run storybook\n\n// In another terminal, watch for changes and rebuild\nnpm run dev\n\n// Build for production\nnpm run build\n\n// Run tests\nnpm test","lang":"typescript","description":"Cloning the template, installing peer dependencies, running Storybook for development, and building the library for production."},"warnings":[{"fix":"If updating rollup plugins, check compatibility. Use lockfile to stay on tested versions.","message":"Terser plugin uses @rollup/plugin-terser which may have breaking changes in version 6.","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Users of the library must import antd CSS globally in their app: import 'antd/dist/reset.css' (v5).","message":"Peer dependency 'antd' is bundled as external, but its CSS may need separate handling. The template does not include antd CSS in the output.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Update the rollup.config.js to externalize your chosen dependencies and adjust any CSS imports.","message":"If you replace antd with another UI library, ensure rollup-plugin-peer-deps-external handles it correctly. The template's rollup config is tied to antd as an example.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Consider using up-to-date alternatives like tsup, tsdx, or microbundle.","message":"Template is based on create-react-library which is no longer maintained. This template is also not actively maintained (last update April 2023).","severity":"deprecated","affected_versions":">=0.1.0"},{"fix":"Use Node.js 16 or 18 for best compatibility. Check rollup docs for Node version support.","message":"Node.js version compatibility: Rollup and plugins may require Node >=14. The template does not specify engine requirements.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'0.1.10':19 '2023':70 'activ':65 'ant':52 'april':69 'automat':36 'boilerplate/template':7 'built':44 'built-in':43 'bundler':17 'commonj':22 'complex':48 'configur':60 'creat':9 'css/sass':28 'depend':39,50 'design':53 'differenti':41 'es':24 'extern':37 'focus':56 'format':26 'includ':42 'javascript':85 'jest':30 'key':40 'kit':77 'last':67 'learn':58 'librari':2,12,34,84,91 'like':51 'maintain':66 'modern':10 'modul':25 'packag':62 'peer':38,49 'primarili':73 'product':82 'production-readi':81 'rather':78 'react':1,11,32,87,90,93 'react-librari':89 'react-templ':86 'readi':83 'rollup':5,14,59 'serv':72 'starter':3,76 'storybook':29 'support':21,46 'templat':88,94 'test':33 'typescript':27,92 'updat':68 'use':13 'version':18","created_at":"2026-06-04T18:48:53.234841+00:00","updated_at":"2026-06-04T18:48:53.234841+00:00","problems":[{"fix":"Run `npm install antd` in the host app. The library expects antd to be available externally.","cause":"Ant Design is a peer dependency but not installed in the consuming project.","error":"Error: Could not resolve 'antd'"},{"fix":"Add react and react-dom as dependencies: `npm install react react-dom`.","cause":"React is not installed as a dependency in the host project.","error":"Module not found: Can't resolve 'react'"},{"fix":"Use `import` syntax or configure bundler (e.g., webpack) to handle ES modules. If using Node.js, add 'type': 'module' to package.json.","cause":"The consuming project uses CommonJS (require) and has not configured ESM interop.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Ensure `npm install` is run in the library project before building.","cause":"The template's devDependencies include that package, but it may not be installed if not running `npm install`.","error":"Error: Cannot find module 'rollup-plugin-peer-deps-external'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://Angelus123.github.io/rollup-react-library-starter","github":"https://github.com/Angelus123/rollup-react-library-starter","docs":null,"changelog":null,"pypi":null,"npm":"chatbot-react-rollup","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}