The config of mpvue in main.js is invalid, unable to generate app.json?

problem description

use mpvue to add config to the main under src. But none of the configurations took effect. And prompt that the entry app.json was not found

the environmental background of the problems and what methods you have tried

Baidu said to delete the ^ of mpvue-loader in package.json, but it did not take effect

related codes

/ / Please paste the code text below (do not replace the code with pictures)
main.js
Vue.config.productionTip = false
App.mpType = "app"

const app = new Vue (App)
app.$mount ()

export default {
pages: [

"pages/main.js"

],
config: {

"window": {
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "-sharpea5149",
  "navigationBarTitleText": "",
  "navigationBarTextStyle": "light"
}

}
}

File directory:

clipboard.png

:

clipboard.png

what result do you expect? What is the error message actually seen?

Aug.17,2021

late at night, bug, like you, later re-created a mpvue template. Compared with the folder module inside, it was found that there was an app.json file under the template folder src folder, but mine did not.

srcmain.jsexport defaultapp.json

npm run dev
distapp.jsonapp.json

in this way, to tell you the truth, I have also tried all kinds of changes. if there is something wrong, you can communicate with each other.


Baidu said to delete the ^ of mpvue-loader in package.json.
perform this step, and then try install


export default {
  //  app.json
  config: {
    //  ^  webpack entry 
    pages: ['^pages/home/main'],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '-sharpfff',
      navigationBarTitleText: 'WeChat',
      navigationBarTextStyle: 'black'
    },
    networkTimeout: {
      "request": 5000
    }
  }
}

my configuration is like this, why is your pages outside config?


there is an app.json, under my src folder that officially said that the config content in main.js has been migrated to app.json. I also have a question: will the main.js under each page be packaged into json? in fact, when I packed it, I didn't produce a json file at all. The page title of each page cannot be set


http://mpvue.com/build/mpvue-.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b352f5-4d610.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b352f5-4d610.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?