-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Labels
Description
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"es5",
"es2015.promise"
],
"module": "es2015",
"moduleResolution": "node",
"outDir": "lib",
"isolatedModules": false,
"experimentalDecorators": true,
"declaration": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"removeComments": true,
"suppressImplicitAnyIndexErrors": true,
"allowSyntheticDefaultImports": true
},
"include": [
"resources/**/*.ts"
],
"exclude": [
"node_modules"
],
"compileOnSave": false
}
I'm trying to get a custom component to build, but I keep getting errors with vue-class-component
.
import Vue from 'vue'
import Component from 'vue-class-component'
@Component({
name: "contact"
})
export default class ContactComponent extends Vue {
mounted(): void {
console.log("mounted");
}
data(): any {
return {
test: "hello"
}
}
public submitForm(formData: any): any {
console.log(formData);
}
}
</script>
// import VueResource from 'vue-resource';
import ContactComponent from '../js/components/Contact.vue';
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
// declare var require: any;
require('../js/bootstrap');
// Vue.use(VueResource);
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
new Vue({
el: '#app',
components: { ContactComponent }
});
I get a bunch of cannot find namespace 'Vue' in declarations.d.ts
and util.d.ts
in the vue class component node_modules folder.
Any thoughts?