LoginSignup
4
0

More than 3 years have passed since last update.

vue-cropperjs Error in render: "TypeError: (0 , _vue.h) is not a function"のエラーについて

Posted at

エラー情報から原因が掴みにくい問題であり、記事もなかったので挙げておきます。 error検出(2021/04/15)

環境

  • node: 14.16.1
  • npm: 6.14.12
  • vue-croppperjs 5.0.0

エラー一覧

error
[Vue warn]: Error in render: "TypeError: (0 , _vue.h) is not a function"
TypeError: (0 , _vue.h) is not a function
[Vue warn]: Error in mounted hook: "Error: The first argument is required and must be an <img> or <canvas> element."
Error: The first argument is required and must be an <img> or <canvas> element.

すべてVueCropperコンポーネントから出たエラーです。

原因

最新バージョンによるエラーでした。
バージョン4.0.0に下げることによって解消しました。

npm

cmd
//最新バージョンのvue-croppperjsをアンインストール
npm uninstall --save-dev vue-cropperjs 

//4.0.0をインストール
npm install --save-dev vue-cropperjs@4.0.0

以上

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0