Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤔运行pnpm site:start报错 #3034

Closed
5 tasks
gb853940223 opened this issue Dec 12, 2024 · 4 comments
Closed
5 tasks

🤔运行pnpm site:start报错 #3034

gb853940223 opened this issue Dec 12, 2024 · 4 comments
Labels
next 2.0-next 版本的问题 ❔question 疑问/使用问题

Comments

@gb853940223
Copy link
Contributor

🏷 Version

Package Version
@antv/s2
@antv/s2-react
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

打算新增一个案例demo。按照官网的贡献指南,将代码clone之后,依次执行以下命令:

切换到 2.x 分支
git checkout next

安装依赖
pnpm install # 或者 pnpm bootstrap

打包
pnpm build

pnpm core:build-esm # 首次运行需要先执行一次

本地启动官网
pnpm site:start

报错如下图:
image

🔗 Reproduce Link

😊 Expected Behavior

😅 Current Behavior

@gb853940223 gb853940223 added the ❔question 疑问/使用问题 label Dec 12, 2024
@github-actions github-actions bot added the next 2.0-next 版本的问题 label Dec 12, 2024
@lijinke666
Copy link
Member

lijinke666 commented Dec 12, 2024

pnpm 版本多少? 看起来是依赖没有安装成功, 包没有 link 到, 根目录 pnpm i 执行成功了吗? 检查下 s2-site 下的 node_modules

image

@gb853940223
Copy link
Contributor Author

pnpm版本为:9.14.1
s2-site 下的 node_modules如下:
image
s2-site 下的 node_modules下的s2如下
image
s2-site 下的 node_modules下的s2-react如下
image
s2-site 下的 node_modules下的s2-react-components如下
image

@gb853940223
Copy link
Contributor Author

image

@lijinke666
Copy link
Member

lijinke666 commented Dec 17, 2024

本地文档执行的是各子包下的 esm 的产物, 所以根目录 pnpm build 后再 pnpm site:start, 后面优化下文档

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next 2.0-next 版本的问题 ❔question 疑问/使用问题
Projects
None yet
Development

No branches or pull requests

2 participants