-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
@fastify/vue Smart Import doesn't resolve path in windows #144
Comments
Hi, The reference to vue pages should be relative and not absolute. Kind regards...Antonio |
In virtual>layout.vue there is the same problem in the layout pattern: |
This is the known issue. (#141) The issue arises from the injected path:
I'm currently working on developing another version of |
Thanks @Shyam-Chen, |
Yes you can! |
hi, does not seem to be fixed yet? |
Prerequisites
Fastify version
4.26.2
Plugin version
6.0.6
Node.js version
20.10.0
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
11
Description
Hi,
I have downloaded in my Win11 laptop the starter project vue-kitchensink.
After installing the node modules, when I run npm run dev I get loads of errors related with the Smart import URL resolution :
Below you have some examples:
12:54:15 [vite] Pre-transform error: Failed to load url ./$_dev/$_js_projects/vue-kitchensink/C:/$_dev/$_js_projects/vue-kitchensink/client/pages/index.vue (resolved id: ./$_dev/$_js_projects/vue-kitchensink/C:/$_dev/$_js_projects/vue-kitchensink/client/pages/index.vue) in /:routes.js. Does the file exist?
12:54:15 [vite] Pre-transform error: Failed to load url ./$_dev/$_js_projects/vue-kitchensink/C:/$_dev/$_js_projects/vue-kitchensink/client/pages/form/[id].vue (resolved id: ./$_dev/$_js_projects/vue-kitchensink/C:/$_dev/$_js_projects/vue-kitchensink/client/pages/form/[id].vue) in /:routes.js. Does the file exist?
12:54:15 [vite] Pre-transform error: Failed to load url ./$_dev/$_js_projects/vue-kitchensink/C:/$_dev/$_js_projects/vue-kitchensink/client/pages/client-only.vue (resolved id: ./$_dev/$_js_projects/vue-kitchensink/C:/$_dev/$_js_projects/vue-kitchensink/client/pages/client-only.vue) in /:routes.js. Does the file exist?
Any help??
Steps to Reproduce
Just make a fresh starter install and run
Expected Behavior
The resolved ID path in my project should be: C:/$_dev/$_js_projects/vue-kitchensink/client/** and not ./$_dev/$_js_projects/vue-kitchensink/C:/$_dev/$_js_projects/vue-kitchensink/client/*
The text was updated successfully, but these errors were encountered: