Skip to content
Discussion options

You must be logged in to vote

确保有 build 的产物之后再 link,你可以直接 npm run build
或者在 package.jsonscripts 里添加一行并启动 npm build:watch,方便调试:

"build:watch": "cross-env NODE_ENV=production rollup -c script/rollup.config.js --watch && node script/utils/bundle-override.js && pnpm run build:tsc",

tdesign-react 是 monorepo 结构

tdesign-react
├─ packages
│  └─ tdesign-react # 进入这个包再进行 link
│     └─ package.json
└─ package.json

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kajweb
Comment options

You must be logged in to vote
2 replies
@kajweb
Comment options

@RylanBot
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants