http-vue-loader icon indicating copy to clipboard operation
http-vue-loader copied to clipboard

vue-cli 3 -> vue.config.js option to include compiler

Open sp00x opened this issue 7 years ago • 2 comments

I guess it might be worth mentioning somewhere (eg requirements) that for vue-cli 3 this requires

{ compiler: true; }

in vue.config.js - see https://github.com/vuejs/vue-cli/blob/dev/docs/config.md

...to save other people the same head-scratching and frustration that I had.

Otherwise you'll get "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."

sp00x avatar May 28 '18 10:05 sp00x

@sp00x, good idea, feel free to create a PR thanks.

FranckFreiburger avatar May 29 '18 14:05 FranckFreiburger

This has been renamed to runtimeCompiler already in the latest betas...

https://github.com/vuejs/vue-cli/commit/ebffdf0

sp00x avatar May 30 '18 07:05 sp00x