railsにwebpackを用いてvue.jsを入れようとしているのですが下記のエラーが出ます。
vue.runtime.esm.js:574 [Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build. (found in <Root>)
この記事で見たところおそらく限定ビルドになっているためだと思われるのですが完全ビルドに変更するために
config/webpack/shared.jsにaliasを追加すれば解決する。
と書いているのですがconfig/webpack/shared.jsが見当たらないです。versionは下記です。
Rails 5.1.4
webpack 3.10.0
config/webpack/shared.jsは作成するものなんでしょうか?もしくは完全ビルドを設定する方法は他にあるのでしょうか?
まだ回答がついていません
会員登録して回答してみよう