Introduce vux,v-chart to report error

introduce vux,v-chart to report an error. The error message is as follows:

ERROR Failed to compile with 1 errors 18:17:42

error in ./node_modules/_vux@2.9.1@vux/src/components/v-chart/mixin.js

Module parse failed: Unexpected token (18:6)
You may need an appropriate loader to handle this file type.
| this.$parent.set(this.chartName, {
| shape: defaultShapeMap[this.chartName] || "",
| ...this.$props,
| ...camelAttrs(this.$attrs)
| })
Apr.09,2021

Thank you for the invitation!
vux2 must be used with vux-loader. Please refer to the following code for configuration in build/webpack.base.conf.js:

const vuxLoader = require('vux-loader')
const webpackConfig = originalConfig //  module.exports  webpackConfig

module.exports = vuxLoader.merge(webpackConfig, {
  plugins: ['vux-ui']
})

specific reference: install and use (webpack)


friend, have you solved this problem? I also have this problem. I would like to ask you


this error is because the object operator has not been parsed, and the corresponding plug-in needs to be installed to parse the corresponding syntax. Transform-object-rest-spread, also has to configure


in the .babelrc file. I wrote according to the document and kept reporting this error

.
Menu