收藏
回答

kbone 引入 wx -chart 总是缺少 load?

ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/wxChart.js 286:16

Module parse failed: Unexpected token (286:16)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/wxChart.js 286:16

Module parse failed: Unexpected token (286:16)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

|

|     /** Views operation **/

>     getCurrView = (views, index) => {

|         if (index > views.length - 1) {

|             return;

 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js 3:0-62 9:0-76 9:0-76

 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js&     

 @ ./src/pages/home/Index.vue?vue&type=script&lang=js&

 @ ./src/pages/home/Index.vue

 @ ./src/mp/home/main.mp.js


ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/core/animation.js 33:19

Module parse failed: Unexpected token (33:19)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

| export default class WxAnimation extends Emitter {

|     // Tweenzer instance

>     tweenzerHandler;

|

|     /**

 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/bar.js 18:0-44 164:33-44

 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js

 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js&     

 @ ./src/pages/home/Index.vue?vue&type=script&lang=js&

 @ ./src/pages/home/Index.vue

 @ ./src/mp/home/main.mp.js


ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/liner.js 373:21

Module parse failed: Unexpected token (373:21)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

|      * @private

|      */

>     _animateLineTick = function(n, ln, sp = 1, bp = 0) {

|         return sp ? ((n % ln) + bp*ln) / (ln * sp) : 0;

|     };

 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js 5:0-37 9:0-76

 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js&     

 @ ./src/pages/home/Index.vue?vue&type=script&lang=js&

 @ ./src/pages/home/Index.vue

 @ ./src/mp/home/main.mp.js

|

|     /** Views operation **/

>     getCurrView = (views, index) => {

|         if (index > views.length - 1) {

|             return;

 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js 3:0-62 9:0-76 9:0-76

 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js&     

 @ ./src/pages/home/Index.vue?vue&type=script&lang=js&

 @ ./src/pages/home/Index.vue

 @ ./src/mp/home/main.mp.js


ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/core/animation.js 33:19

Module parse failed: Unexpected token (33:19)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

| export default class WxAnimation extends Emitter {

|     // Tweenzer instance

>     tweenzerHandler;

|

|     /**

 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/bar.js 18:0-44 164:33-44

 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js

 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js&     

 @ ./src/pages/home/Index.vue?vue&type=script&lang=js&

 @ ./src/pages/home/Index.vue

 @ ./src/mp/home/main.mp.js


ERROR in ./node_modules/_wx-chart@1.0.1@wx-chart/src/charts/liner.js 373:21

Module parse failed: Unexpected token (373:21)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

|      * @private

|      */

>     _animateLineTick = function(n, ln, sp = 1, bp = 0) {

|         return sp ? ((n % ln) + bp*ln) / (ln * sp) : 0;

|     };

 @ ./node_modules/_wx-chart@1.0.1@wx-chart/src/wx-chart.js 5:0-37 9:0-76

 @ ./node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!./node_modules/_babel-loader@7.1.5@babel-loader/lib??ref--5-1!./node_modules/_vue-loader@15.9.1@vue-loader/lib??vue-loader-options!./node_modules/_vue-improve-loader@0.1.1@vue-improve-loader/src!./src/pages/home/Index.vue?vue&type=script&lang=js&     

 @ ./src/pages/home/Index.vue?vue&type=script&lang=js&

 @ ./src/pages/home/Index.vue

 @ ./src/mp/home/main.mp.js

回答关注问题邀请回答
收藏
登录 后发表内容
问题标签