Answer the question
In order to leave comments, you need to log in
Error in laravel "TS2307: Cannot find module './components/App.vue'.?
When compiling, I get the error "TS2307: Cannot find module './components/App.vue'."?
const elixir = require('laravel-elixir');
require('laravel-elixir-vue-2');
require('laravel-elixir-webpack');
elixir((mix) => {
mix
.sass('app.scss')
.webpack("resources/assets/js/app.ts",{
module: {
loaders: [
{
test: /\.ts?$/,
loader: 'ts-loader',
options: {
appendTsSuffixTo: [/\.vue$/],
}
},
],
}
});
});
<template>
<div></div>
</template>
<script lang="ts">
import Vue from "vue";
import Component from 'vue-class-component'
@Component()
export default class App extends Vue {
created(){
console.log("Test")
}
}
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question