html52.com
我爱小程序-开发者交流社区

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

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付