2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vue-strapを入れたけどエラーが出るときに疑うこと/Failed to resolve directive: el

Posted at

要約

wffranco氏のフォークしたvue2対応版を使うべし
https://github.com/wffranco/vue-strap

入れたけどエラーがでる

Vueでアプリケーションを作りはじめ、Bootstrapの機能がVueで使えるVue-strapを使いたくなり入れてみた。
一番検索でヒットして、スター数も多いので「yuche」氏製のvue-strapを入れた

npm install --save vue-strap

動作させたらまともに動かず、めっちゃエラーを吐きまくった

[Vue warn]: Failed to resolve directive: el

解決法

githubのリポジトリにあるロードマップを見てみるとあまり更新がない様子、、、
ロードマップの下の方にフォークしたリポジトリが記載されているので、それをインストールしたらエラーを一つも吐かなくなった。

npm install github:wffranco/vue-strap --save
2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?