ios 开始调试后的 Nativescript 调试控制台消息

Nativescript debug console message after starting debug on ios

我在 VSC 调试器中开始调试时收到以下消息。

尝试从路径“/Volumes/T7/Documents/1.Sources/app/webpack.config.js”获取 webpack.config.js 文件时出错。错误是:TypeError: host.onUnRecoverableConfigFileDiagnostic is not a function

有人知道如何解决这个问题吗?

提前致谢!

亲切的问候, R

我在 android 使用 VS 代码进行调试时遇到了同样的问题 本机脚本扩展 0.1

您必须将 @nativescript/webpack 更新到最新版本(在撰写本文时为 4.0.0)并使用命令 ./node_modules/.bin/update-ns-webpack --configs 更新您的 webpack.config.js,同时检查如果您必须使用 ./node_modules/.bin/update-ns-webpack --deps

更新 deps