{"id":18251,"library":"create-bundler","title":"create-bundler","description":"A scaffolding tool that creates pre-configured projects with zero-config support for ES6+, TypeScript, Less/Sass/CSS Modules, Tailwind CSS, file-system routing, and bundling for web and plugins. Current stable version is 0.4.8. It simplifies project initialization by providing an out-of-the-box build setup, similar to create-react-app but more opinionated for Chinese developers (Chinese documentation). Primarily used via pnpm.","status":"active","version":"0.4.8","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install create-bundler","lang":"bash","label":"npm"},{"cmd":"yarn add create-bundler","lang":"bash","label":"yarn"},{"cmd":"pnpm add create-bundler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The tool is designed to be run via pnpm create, not npm or yarn. Using npm create may fail or install a different package.","wrong":"npm create bundler","symbol":"create-bundler","correct":"pnpm create bundler"},{"note":"After scaffolding, use pnpm to install dependencies and start the dev server, not npm.","wrong":"cd <project-name> && npm start","symbol":"project structure","correct":"cd <project-name> && pnpm install && pnpm start"},{"note":"The package is ESM-only since v0.4.0. CommonJS require will not work.","wrong":"const createBundler = require('create-bundler');","symbol":"bundler API","correct":"import { createBundler } from 'create-bundler';"}],"quickstart":{"code":"# Ensure pnpm is installed: npm install -g pnpm\npnpm create bundler my-project\ncd my-project\npnpm install\npnpm start\n# Dev server at http://localhost:3000","lang":"javascript","description":"Scaffold a new project with create-bundler, install dependencies, and start the development server."},"warnings":[{"fix":"Install pnpm globally: npm install -g pnpm","message":"Requires pnpm as the package manager. npm or yarn may not work correctly.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use import syntax. If using CommonJS, stick to version <0.4.0.","message":"ESM-only since version 0.4.0. CommonJS require will fail.","severity":"breaking","affected_versions":">=0.4.0"},{"fix":"Update imports to match the new API.","message":"Legacy API (if any) removed in v0.4.0.","severity":"deprecated","affected_versions":">=0.4.0"},{"fix":"Consider using a translation tool or alternative scaffolding tool like create-vite.","message":"Chinese-only documentation. English users may find it hard to troubleshoot.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use pnpm create bundler or install globally: pnpm add -g create-bundler then run create-bundler","cause":"Running npm create bundler instead of pnpm create bundler.","error":"Error: Cannot find module 'create-bundler'"},{"fix":"Change to import syntax or downgrade to version <0.4.0.","cause":"Using require() on an ESM-only package.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Install pnpm: npm install -g pnpm","cause":"pnpm is not installed or not in PATH.","error":"ERR! pnpm create bundler failed: spawn pnpm ENOENT"},{"fix":"Check the documentation: import { createBundler } from 'create-bundler' and call it correctly.","cause":"Using wrong import or call signature.","error":"TypeError: createBundler is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}