javascript
Installation
SKILL.md
JavaScript / Node.js Skill
Project Setup Basics
- Always check
package.jsonfirst to understand available scripts before running anything - Run
npm installbefore attempting to execute Node.js scripts in a new project - If a user specifies a script to run, use exactly what they specify
Library Compatibility Gotchas
LobeHub / antd-style + Zustand 5 Conflict
@lobehub/ui and antd-style bundle Zustand 3.x internally. Mixing them with Zustand 5 crashes every state update with:
TypeError: h.use is not a function
Fix: NEVER import @lobehub/ui or antd-style in projects using Zustand 5. Use antd + theme.useToken() instead.