Vue cli 3 introduces vux error report

 error  in ./node_modules/vux/src/components/inline-calendar/index.vue?vue&type=custom&index=0&blockType=i18n

Module parse failed: Unexpected token (74:7)
You may need an appropriate loader to handle this file type.
| week_day_0:
|   en: Su
>   zh-CN: 
| week_day_1:
|   en: Mo

 @ ./node_modules/vux/src/components/inline-calendar/index.vue?vue&type=custom&index=0&blockType=i18n 1:0-174 1:190-193 1:195-366 1:195-366
 @ ./node_modules/vux/src/components/inline-calendar/index.vue
 @ ./node_modules/vux/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.1.8:8080/sockjs-node (webpack)/hot/dev-server.js ./src/main.js


 WARN
Couldn"t parse bundle asset "/Users/dev/vue/video/dist/about.js".
Analyzer will use module sizes from stats file.
import Vue from "vue"
import App from "./App.vue"
import router from "./router"
import store from "./store"
import FastClick from "fastclick"
import Vux from "vux"
FastClick.attach(document.body)
Vue.config.productionTip = false
Vue.use(Vux)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("-sharpapp")

how to solve this

Sep.26,2021

did not use vux, but read the official website. Vux needs to be used with vux-loader . See if you set


have you solved the problem of global introduction? at present, I can only introduce it locally. Once you want to use a plug-in globally in main.js, you will report an error.

//main.js
import  { ToastPlugin } from 'vux'
Vue.use(ToastPlugin)



//console
"export 'default' (reexported as 'querystring') was not found in './src/tools/querystring/index.js'

reports the same mistake. I don't know what it means, and google doesn't find out why, but I use vant-ui, to leave my name and hope that some great god can answer it.


Just modify

babel.config.js. The default node_module folder skips polyfill. Now vux adapts to cli3, and there are official upgrades such as unable to load components on demand, which leads to excessive package size.

return to cli2.

module.exports = {
  presets: [
    [
      '@vue/app',
      {
        useBuiltIns: 'entry'
      }
    ]
  ]
}

encounters the same error, solve.


create vue.config.js in your project directory, and then copy the following paragraph into it.

  https://doc.vux.li/zh-CN/vux-.

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-1ea06a6-1ad4.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-1ea06a6-1ad4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?