使用脚手架安装ts版本的uniapp运行到真机时报错
hBuilder版本:3.3.11
真机版本:iOS 15.3.1
根据网上搜到的,已安装node-sass@6.0.1和sass-loader@10.2.0仍是报错
使用脚手架安装ts版本的uniapp运行到真机时报错
hBuilder版本:3.3.11
真机版本:iOS 15.3.1
根据网上搜到的,已安装node-sass@6.0.1和sass-loader@10.2.0仍是报错
我新建了一个项目,删除node_moudules 然后重新安装就行了,真是无语,感觉组件版本直接不兼容
"dependencies": {
"@dcloudio/uni-app-plus": "^2.0.1-33920220314003",
"@dcloudio/uni-h5": "^2.0.1-33920220314003",
"@dcloudio/uni-helper-json": "",
"@dcloudio/uni-i18n": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-360": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-alipay": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-baidu": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-jd": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-kuaishou": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-lark": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-qq": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-toutiao": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-vue": "^2.0.1-33920220314003",
"@dcloudio/uni-mp-weixin": "^2.0.1-33920220314003",
"@dcloudio/uni-quickapp-native": "^2.0.1-33920220314003",
"@dcloudio/uni-quickapp-webview": "^2.0.1-33920220314003",
"@dcloudio/uni-stat": "^2.0.1-33920220314003",
"@dcloudio/uni-ui": "^1.3.2",
"@vue/shared": "^3.0.0",
"apollo-boost": "^0.4.9",
"axios": "^0.21.1",
"core-js": "^3.6.5",
"dayjs": "^1.11.0",
"flyio": "^0.6.2",
"graphql": "^15.1.0",
"node-sass": "^4.14.0",
"regenerator-runtime": "^0.12.1",
"sass-loader": "^8.0.2",
"umtrack-wx": "^2.5.2",
"vue": "^2.6.11",
"vue-class-component": "^6.3.2",
"vue-property-decorator": "^8.0.0",
"vuex": "^3.2.0",
"vuex-class": "^0.3.2"
},
"devDependencies": {
"@babel/plugin-syntax-typescript": "^7.2.0",
"@babel/runtime": "~7.12.0",
"@dcloudio/types": "",
"@dcloudio/uni-automator": "^2.0.1-33920220314003",
"@dcloudio/uni-cli-i18n": "^2.0.1-33920220314003",
"@dcloudio/uni-cli-shared": "^2.0.1-33920220314003",
"@dcloudio/uni-migration": "^2.0.1-33920220314003",
"@dcloudio/uni-template-compiler": "^2.0.1-33920220314003",
"@dcloudio/vue-cli-plugin-hbuilderx": "^2.0.1-33920220314003",
"@dcloudio/vue-cli-plugin-uni": "^2.0.1-33920220314003",
"@dcloudio/vue-cli-plugin-uni-optimize": "^2.0.1-33920220314003",
"@dcloudio/webpack-uni-mp-loader": "^2.0.1-33920220314003",
"@dcloudio/webpack-uni-pages-loader": "^2.0.1-33920220314003",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@vue/cli-plugin-babel": "~4.5.17",
"@vue/cli-plugin-eslint": "^4.4.1",
"@vue/cli-plugin-typescript": "~4.5.11",
"@vue/cli-plugin-vuex": "^4.4.1",
"@vue/cli-service": "~4.5.17",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^5.0.2",
"babel-plugin-import": "^1.11.0",
"cross-env": "^7.0.2",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "^6.2.2",
"graphql-tag": "^2.10.3",
"jest": "^25.4.0",
"mini-types": "",
"miniprogram-api-typings": "",
"postcss-comment": "^2.0.0",
"prettier": "^1.19.1",
"typescript": "^3.0.0",
"vue-template-compiler": "^2.6.11"
},
"browserslist": [
"Android >= 4.4",
"ios >= 9"
],
"uni-app": {
"scripts": {}
}