Open lucasctd opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I still have no clue what's going on. Probably going to try Parcel or Rollup I dunno :/
I also ran into this problem, how did you solve it?
I also ran into this problem, how did you solve it?
Actually I didn't.
need create shim in root dir
shims-vue.d.ts
declare module '*.vue' {
import { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
and add to tsconfig.json
{
// ....
"include": ["shims-vue.d.ts"],
}
Expected Behavior
Compile file without any error
Actual Behavior
It keeps throwing an error saying the file does not exist.
Steps to Reproduce the Problem
In my case, I have a Laravel + InertiaJS project with some Vue components.
I am importing the question.vue component inside the questionBuilder.vue, but, for some reason, it keeps throwing that error, I have no idea why. The file is there, my IDE (PHPStorm) identifies the file as it's on a valid path. Also, the changes I made are actually being compiled to the bundle.js file, so do you guys have any idea of what could be wrong? I have also written my own webpack.config.js to see if it's related to laravel mix but I had the same issue.
Thanks in advance.
webpack.config.js
tsconfig.json
webpack.mix.js (laravel mix)
Location of a Minimal Repository that Demonstrates the Issue.