Closed wwwtony5488 closed 5 years ago
3.9.2
Binaries: Node: 10.15.1 - /usr/local/bin/node Yarn: 1.13.0 - /usr/local/bin/yarn npm: 6.10.1 - /usr/local/bin/npm npmPackages: @vue/babel-helper-vue-jsx-merge-props: 1.0.0 @vue/babel-plugin-transform-vue-jsx: 1.0.0 @vue/babel-preset-app: 3.11.0 @vue/babel-preset-jsx: 1.1.0 @vue/babel-sugar-functional-vue: 1.0.0 @vue/babel-sugar-inject-h: 1.0.0 @vue/babel-sugar-v-model: 1.0.0 @vue/babel-sugar-v-on: 1.1.0 @vue/cli-overlay: 3.9.0 @vue/cli-plugin-babel: ^3.11.0 => 3.11.0 @vue/cli-plugin-e2e-nightwatch: ^3.9.0 => 3.9.2 @vue/cli-plugin-typescript: ^3.9.0 => 3.9.0 @vue/cli-plugin-unit-jest: ^3.9.0 => 3.9.0 @vue/cli-service: ^3.9.0 => 3.9.3 @vue/cli-shared-utils: 3.9.0 (3.11.0) @vue/component-compiler-utils: 2.6.0 (3.0.0) @vue/preload-webpack-plugin: 1.1.0 @vue/test-utils: 1.0.0-beta.29 => 1.0.0-beta.29 @vue/web-component-wrapper: 1.2.0 babel-helper-vue-jsx-merge-props: 2.0.3 jest-serializer-vue: 2.0.2 typescript: ^3.4.3 => 3.5.3 vue: ^2.6.10 => 2.6.10 vue-class-component: ^7.0.2 => 7.1.0 vue-cli-plugin-element: ^1.0.1 => 1.0.1 vue-echarts: ^4.0.3 => 4.0.3 vue-hot-reload-api: 2.3.3 vue-jest: 3.0.4 vue-loader: 15.7.1 vue-property-decorator: ^8.1.0 => 8.2.1 vue-router: ^3.0.3 => 3.0.7 vue-style-loader: 4.1.2 vue-template-compiler: ^2.6.10 => 2.6.10 vue-template-es2015-compiler: 1.9.1 vuex: ^3.0.1 => 3.1.1 vuex-persistedstate: ^2.5.4 => 2.5.4 npmGlobalPackages: @vue/cli: Not Found
babel.config.js
module.exports = { presets: [ ['@vue/app', { useBuiltIns: 'entry', }] ] }
main.ts
import '@babel/polyfill'; <br> import Vue from 'vue';
package.json "build": "vue-cli-service build"
"build": "vue-cli-service build"
.browserslistrc
`> 2%` <br> ie 11
$ yarn build
$ npx browserslist shows 'ie 11' indeed, but codes in /dist/js/*.js still exist some parts such as 'p(e, t={})' and 'Promise'
$ npx browserslist
To figure out is that something I missed, cause I followed the documentation
got error message " Expected ')' " on IE 11
Please read the README of vue-echarts.
It's the reason for your errors
thanks, I finally resolved.
Version
3.9.2
Environment info
Steps to reproduce
babel.config.js
main.ts
package.json
"build": "vue-cli-service build"
.browserslistrc
$ yarn build
$ npx browserslist
shows 'ie 11' indeed, but codes in /dist/js/*.js still exist some parts such as 'p(e, t={})' and 'Promise'What is expected?
To figure out is that something I missed, cause I followed the documentation
What is actually happening?
got error message " Expected ')' " on IE 11