`typings/types/wx`这个路径右键更新声明文件,提示`声明文件更新失败,或者无需更新`。
调试日志:
[wx-tslib-updater] wxLibRootPath or projectWXLibRootPath is invalid [wx-tslib-updater] need update: false
报错的路径,配置文件里没有地方填吧?
{
"miniprogramRoot": "miniprogram/",
"compileType": "miniprogram",
"libVersion": "2.8.2",
"setting": {
"useCompilerPlugins": [
"typescript"
],
"packNpmManually": true,
"packNpmRelationList": [
{
"packageJsonPath": "./package.json",
"miniprogramNpmDistDir": "./miniprogram/"
}
],
"condition": false
},
"srcMiniprogramRoot": "miniprogram/"
}
更新下最新开发版试试
开发者工具有问题,一直没解决,建议使用 npm 方式安装使用:
https://github.com/xiaweiss/miniprogram-type