-
Notifications
You must be signed in to change notification settings - Fork 71
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 下, taro-ui 模板无 hoist 无法编译(幽灵依赖在哪里?) #92
Comments
尝试第一步: 上述错误说明, 用 pnpm packageExtensions 对 package.json 进行魔改:
这次遇到 '@tarojs/taro-loader' 缺失。https://gist.github.com/ztl8702/f0055f968fea45a6e39cc4d1be78ff0f |
这就很蹊跷。 |
是当前包(package.json)幽灵依赖了
|
结论为了支持 pnpm 1. |
复现步骤
npx @tarojs/cli init
在仓库根目录下创建
.npmrc
:pnpm install
pnpm build:weapp
预期结果:编译成功
实际结果:
完整错误:https://gist.github.com/ztl8702/5d9b0652d9a692b68f08a86694c2c82c
其他信息
在我运行
@tarojs/cli init
时,应该拉的是这个模板: https://github.com/NervJS/taro-project-templates/tree/v3.5/taro-uiThe text was updated successfully, but these errors were encountered: