-
Notifications
You must be signed in to change notification settings - Fork 46
error: No loader is configured for ".vue" files: components/ComponentName.vue #18
Comments
Same here:
|
I am having the same issue with layouts... |
Vue files need to be imported with the // before
import MyButton from '@/components/util/my-button';
// after
import MyButton from '@/components/util/my-button.vue'; |
@pierredup it worked |
Worked for me as well. Here's a shortcut that worked for me if you have many lines without .vueStep 1: Add .vue at the end of lines that contains @/components using search in regex mode.Type in Regex Search
Replace with
Execute Replace All Step 2: Search and Replace ";.vue to .vue"; |
Not sure if this issue should be closed. I think it would be cool, if it would work out of the box - without having to add |
You've got a point. I'll reopen this and wait for the maintainers decision. |
This is not an issue with this plugin but is by design how Vite works. See vitejs/vite#178 (comment) and https://twitter.com/youyuxi/status/1288859415878283264 |
Good to know, thanks! |
I will close this now as it has nothing to do with the plugin. |
tried it just now with my SPA project.
The text was updated successfully, but these errors were encountered: