【发布时间】:2018-11-16 15:16:35
【问题描述】:
我正在使用最新的 NS、TNS 和 tns-ios 并收到以下错误
node_modules/tns-core-modules/ui/styling/gradient.d.ts(7,25): error TS6143: Module '../../css/parser' was resolved to '/Users/asrock/Documents/test/node_modules/tns-core-modules/css/parser.js', but '--allowJs' is not set.
我清理了我的项目 - 现在 typescript 编译器失败并退出。
使用 TS 2.4.2。
NS 4.1、TNS-CORE 4.1 和 TNS-IOS 4.1
这是tns build iOS 输出
` 对 Node.js ^6.0.0 的支持已弃用,并将在 NativeScript 的下一版本中删除。请升级到最新的 Node.js LTS 版本。
对 macOS 10.12 的支持已弃用,并将在 NativeScript 的下一版本中删除。请升级到最新的 macOS 版本。
从 /Users/asrock/Documents/test/hooks/before-prepare/nativescript-dev-sass.js 执行 before-prepare 钩子 找到对等节点-sass
从 /Users/asrock/Documents/test/hooks/before-prepare/nativescript-dev-typescript.js 执行 before-prepare 钩子
找到对等 TypeScript 2.4.2
node_modules/tns-core-modules/ui/styling/gradient.d.ts(7,25):错误 TS6143:模块 '../../css/parser' 已解析为 '/Users/asrock/ Documents/test/node_modules/tns-core-modules/css/parser.js',但没有设置'--allowJs'。
TypeScript 编译器失败,退出代码为 1`
【问题讨论】:
标签: nativescript