-
-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module resolution for .vue
files is not working inside .vue
file
#1117
Comments
Your minimal repo requires a local version of fork-ts-checker-webpack-plugin:
I tried running with the released version but got:
|
Sorry, my bad. I've updated the reproduction repository, please try again :) |
The solution is at: Putting the following vue-shim.d.ts declaration file under my ./src directory solves the problem:
|
Hey @piotr-oles! Glad to see @appzuka has been good enough to help you out (it's worth saying I'm not a vuejs dev either |
Thanks, @appzuka ! |
Hi!
I'm an author of the
fork-ts-checker-webpack-plugin
.I'm working on the rewrite of this plugin in this PR. I wanted to test
.vue
file support in the end-to-end test using thets-loader
. I was trying different configurations, starting from the configuration described in thets-loader
README. Unfortunately, I wasn't able to compile the project without errors. I'm not a Vue.js developer, so maybe I messed up something 😄Expected Behaviour
When I have
.vue
file with<script lang="ts">
and this file imports another.vue
file, the module should be imported properly.Actual Behaviour
The
ts-loader
loads.vue
module from a.ts
module, but can't load.vue
module from another.vue
module:Steps to Reproduce the Problem
https://github.com/piotr-oles/ts-loader-vue-sandbox#steps-to-reproduce
Location of a Minimal Repository that Demonstrates the Issue.
https://github.com/piotr-oles/ts-loader-vue-sandbox
The text was updated successfully, but these errors were encountered: