This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Vue-Cli template/TypeScript support?Β #47
Open
Description
I started my project with the new vue-cli builder (it'd be great to have a template for vue-babylonjs to help getting started easier).
Anyway, since I set my project up with TypeScript, I'm having trouble importing vue-babylonjs in my main.ts file:
Could not find a declaration file for module 'vue-babylonjs'. 'node_modules/vue-babylonjs/dist/umd.js' implicitly has an 'any' type.
Because of that I think I'm not importing the lib correctly, I tried just Vue.use(require('vue-babylonjs'));
instead, but am getting an error of Unknown custom element: <Scene>
when I load my component/page.
Any advice? Thanks!