`useDocuments` paths are incorrectly resolved in Windows
See original GitHub issue- I have read the troubleshooting section before opening an issue.
- I have tried upgrading
iles
andvite
.
Description 📖
<script setup lang="ts">
const posts = useDocuments("~/posts")
</script>
<template>
<a v-for="post of posts" :key="post.href" :href="post.href">
{{ post.title }}
<component :is="post" excerpt />
</a>
</template>
Similar code appears differently in different components (specifically, Header.vue
and List.vue
). Header.vue
is fine, while List.vue
has a problem, the prompt tells me that HelloWorld.md cannot be found, the file actually exists and according to the error it links to an incorrect directory(C:\src\posts\HelloWorld.md
).
Possible useful information: I am using Windows 11 and pnpm
Reproduction 🐞
Please provide a link to a repo that can reproduce the problem you ran into.
https://github.com/kecrily/iles-bug-reproduction
Dependencies Info
Run npx iles info
and pnpm list
(or npm list
) and provide the output:
iles v0.7.21 vite v2.7.10
devDependencies:
iles 0.7.21
typescript 4.5.4
vite 2.7.10
vue-tsc 0.29.8
Logs 📜
If not providing a reproduction:
Output
Run DEBUG=iles:* npm run dev
or DEBUG=iles:* npm run build
and provide the output:
Screenshots 📷
Provide console or browser screenshots of the problem.
Issue Analytics
- State:
- Created 2 years ago
- Comments:19 (18 by maintainers)
Top Results From Across the Web
I messed up my foldetr paths and i can't fix it
In the folders that are displaying the wrong name: Open the folder; Shift+right-click in the background & select 'Open PowerShell window here' ...
Read more >Use component documents in AWSTOE - EC2 Image Builder
Use YAML component documents with AWS Task Orchestrator and Executor to create components that you can use with AWS services to build AMIs...
Read more >How the do I exactly fix the userpath bug?
Was anybody here able to fix that bug where beamng drive is using a different userpath? So far it feels like im literally...
Read more >Can't use relative paths in url() in scss files #12797 - GitHub
I know this is solved by using an absolute path for the image. ... The problem with that is that I can't change...
Read more >TeraCopy - Code Sector Blog
Use Documents folder for reports. ... Warn when Explorer passes the cropped path to TeraCopy. ... Fixed: incorrect total size formatting for some...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in
@islands/pages
0.7.8
.Thanks again @kecrily for providing detailed error information! Try running
pnpm upgrade
, and it should bump the versions automatically.The logs returned by this command are still the same, but the logs that are needed after visiting the page appear. I think the original command worked too, I just didn’t visit the page
Details