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

[hold] 选择 Nextjs 模板后打包的文件中缺少部分依赖 #84

Open
LancelotLewis opened this issue Mar 28, 2022 · 3 comments
Open
Assignees

Comments

@LancelotLewis
Copy link
Collaborator

如图,缺少了 @arcblock, @blocklet 等依赖
image

@LancelotLewis
Copy link
Collaborator Author

经过排查发现是由于我使用的目录外层有一个 package.json 文件和 node_modules 文件夹,如果在一个全新的文件夹中创建,则打包后的产物是正常的,猜测可能与包的解析有关系

@LancelotLewis
Copy link
Collaborator Author

以下记录几种情况打包结果的统计

  1. 外层 yarn + 内层 yarn 失败
  2. 外层 yarn + 内层 pnpm 失败 (将外层换为 pnpm 后成功)
  3. 外层 pnpm + 内层 pnpm 成功
  4. 外层 pnpm + 内层 yarn 成功

由以上情况猜测可能与 yarn 有关系

@LancelotLewis
Copy link
Collaborator Author

暂不考虑继续深入这个问题

@LancelotLewis LancelotLewis changed the title 选择 Nextjs 模板后打包的文件中缺少部分依赖 [hold] 选择 Nextjs 模板后打包的文件中缺少部分依赖 Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants