Vue

Vue.JS3

コンポーネントロード時のエラー

:Errorcompilingtemplate:TemplatesshouldonlyberesponsibleformappingthestatetotheUI.Avoidplacingtagswithside-effectsinyour...
Laravel

[Laravel Mix] 型定義ファイル(.d.ts)を作ったら”TypeScript emitted no output”エラーになる

環境Laravel-mix6Vue2.7型定義ファイルがないモジュールがあったので、@typeフォルダを作って型定義ファイルを入れてビルドしてみたが・・・Modulebuildfailed(from./node_modules/ts-loa...
開発

Vue2.7でteleportが使えない

Vue2.7でVue3のteleport使えないのか?:Unknowncustomelement:<Teleport>-didyouregisterthecomponentcorrectly?Forrecursivecomponents,m...
TypeScript

[TypeScript]オブジェクト配列にしたら型が剥がれた

Vueでこんな型を作ったtypequeryOptions={:Ref|string|number}で、こんな感じでオブジェクト内のキーと値をとってみたのだが・・・for(constkeyinoptions){ if(typeof(optio...
Laravel

Uncaught TypeError: Vue.use is not a function

Laravelmix+vueで開発しているとUncaughtTypeError:Vue.useisnotafunctionが、出たり出なかったりすることがあるのだが、ようやく意味がわかった。ビルド途中でリロードする発生するようだwebpac...