Taro:微信小程式顯示未找到入口檔案sitemap.json
-
- 1、問題描述
- 2、解決方法
1、問題描述
更新微信小程式開發者工具後,使用npm run build:weapp編譯代碼後顯示未找到入口sitemap.json檔案
2、解決方法
找到根目錄下的project.config.json檔案,将useCompilerModule的值改為true
//project.config.json
{
"miniprogramRoot": "dist/",
"projectname": "order",
"description": "",
"appid": "touristappid",
"setting": {
"urlCheck": true,
"es6": false,
"postcss": false,
"minified": false,
"newFeature": true,
"coverView": true,
"autoAudits": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerModule": true
},
"compileType": "miniprogram",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {}
}