作成日: 2019/07/01 最終更新日: 2020/01/22
文書種別
不具合
発生環境
12.1.0
状況
修正済み
詳細
Vue CLIで作成したアプリでSpread.Sheetsを使用すると、次のエラーが発生してSpread.Sheetsが表示されません。
[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. [Vue warn]: Error in mounted hook: "TypeError: this.$el.getElementsByClassName is not a function" TypeError: this.$el.getElementsByClassName is not a function
回避方法
SpreadJS (Ver.13.0.4)で修正済み
Ver.13.0.4より前のバージョンでは次の方法で回避可能です。
アプリにvue.config.jsファイルを追加して、次の設定を追加するとエラーを回避して表示できます。
Ver.13.0.4より前のバージョンでは次の方法で回避可能です。
アプリにvue.config.jsファイルを追加して、次の設定を追加するとエラーを回避して表示できます。
module.exports = {
runtimeCompiler: true
}
旧文書番号
84176