質問編集履歴

1

エラー内容を追加しました

2022/06/13 03:18

投稿

rnanayo
rnanayo

スコア0

test CHANGED
File without changes
test CHANGED
@@ -3,8 +3,29 @@
3
3
  chart.jsを使用したいため、インストール後に表示させようとするもエラーが出てしまう。
4
4
 
5
5
  vue-chart.jsのHPより参考して、vue-chart.jsをインストトールしている。
6
+
7
+ 現在のバージョン
8
+ "vue": ^2.6.11
9
+ "vue-chartjs": "^4.1.1"
10
+ "chart.js": "2.9.4"
11
+
6
12
  ```
7
13
  yarn add vue-chartjs chart.js@2.9.4
14
+ ```
15
+
16
+ 発生しているエラー
17
+ ```
18
+ index.js?368d:85 Uncaught TypeError: Object(...) is not a function
19
+ at generateChart (index.js?368d:85:1)
20
+ at eval (index.js?368d:232:1)
21
+ at ./node_modules/vue-chartjs/dist/index.js (chunk-vendors.js:22240:1)
22
+ at __webpack_require__ (app.js:849:30)
23
+ at fn (app.js:151:20)
24
+ at eval (cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/store/Chart.vue?vue&type=script&lang=js&:3:69)
25
+ at ./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/store/Chart.vue?vue&type=script&lang=js& (app.js:1694:1)
26
+ at __webpack_require__ (app.js:849:30)
27
+ at fn (app.js:151:20)
28
+ at eval (Chart.vue?4c7e:1:1)
8
29
  ```
9
30
  ###
10
31