NativeScript / NativeScript/nativescript-cli

When use YARN, application with webpack doesn't build

未关闭
#4,256 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@Fatme 已经在做这个了。

开始于 2019年1月14日。

bug
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: next
  • Cross-platform modules: next
  • Android Runtime: next
  • iOS Runtime: next
  • Plugin(s): nativescript-dev-webpack - next("^0.19.1-next-2019-01-04-114028-05")

Describe the bug
This bug happens only when you use YARN.
When I update webpack and the application couldn't build. The error is: no such file or directory, lstat '/Users/mivanova/Projects/nativescript-cli-tests/TestApp/node_modules/nativescript-dev-webpack/node_modules/schema-utils/package.json

To Reproduce

  1. tns create app -- template tns-template-hello-world-ng
  2. npm i nativescript-dev-webpack@next --save-dev
  3. run update-ns-webpack --deps --configs from /node_modules/.bin
  4. tns platform add android@next
  5. tns run android --device emulator-5554 --bundle
    you will see error

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。