ElMassimo / iles

🏝 The joyful site generator
https://iles.pages.dev
MIT License
1.08k stars 31 forks source link

`@iles/feed` module doesn't work in Windows #95

Closed kecrily closed 2 years ago

kecrily commented 2 years ago

Description πŸ“–

Provide a clear and concise description of what the bug is.

After following the documentation instructions to create feed.vue, the website pops up with an error.

Reproduction 🐞

Please provide a link to a repo that can reproduce the problem you ran into.

https://github.com/kecrily/iles-bug-reproduction/commit/e53e880841450e3f8a5c8c27887a9d5c109535ff

Dependencies Info _Run `npx iles info` and `pnpm list` (or `npm list`) and provide the output:_ ``` devDependencies: @islands/feed 0.1.1 @islands/pages 0.7.7-0 iles 0.7.31 typescript 4.5.5 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:_ ``` 22:28:50 [vite] Internal server error: Failed to resolve import "C:UserskecrilyDesktopiles-bug-reproduction ode_modules.pnpm@islands+feed@0.1.1_iles@0.7.31 ode_modules@islands ender-feed" from "src\pages\feed.vue". Does the file exist? Plugin: vite:import-analysis File: C:/Users/kecrily/Desktop/iles-bug-reproduction/src/pages/feed.vue 1 | const _meta = {filename:"src\u002Fpages\u002Ffeed.vue",lastUpdated:new Date(1645452524878),href:"\u002Ffeed.atom"}, _frontmatter = {path:"\u002Ffeed.atom"};/* unplugin-vue-components disabled */import { RenderFeed as __unplugin_components_0 } from 'C:\Users\kecrily\Desktop\iles-bug-reproduction\node_modules\.pnpm\@islands+feed@0.1.1_iles@0.7.31\node_modules\@islands\feed\dist\render-feed'; | ^ 2 | import { defineComponent as _defineComponent } from "vue"; 3 | const _sfc_main = /* @__PURE__ */ _defineComponent({inheritAttrs:false,..._meta, ..._frontmatter, meta: _meta, frontmatter: _frontmatter,layoutName:false,layoutFn:false, at formatError (C:\Users\kecrily\Desktop\iles-bug-reproduction\node_modules\.pnpm\vite@2.8.4\node_modules\vite\dist\node\chunks\dep-971d9e33.js:38082:46) at TransformContext.error (C:\Users\kecrily\Desktop\iles-bug-reproduction\node_modules\.pnpm\vite@2.8.4\node_modules\vite\dist\node\chunks\dep-971d9e33.js:38078:19) at normalizeUrl (C:\Users\kecrily\Desktop\iles-bug-reproduction\node_modules\.pnpm\vite@2.8.4\node_modules\vite\dist\node\chunks\dep-971d9e33.js:69803:26) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async TransformContext.transform (C:\Users\kecrily\Desktop\iles-bug-reproduction\node_modules\.pnpm\vite@2.8.4\node_modules\vite\dist\node\chunks\dep-971d9e33.js:69943:57) at async Object.transform (C:\Users\kecrily\Desktop\iles-bug-reproduction\node_modules\.pnpm\vite@2.8.4\node_modules\vite\dist\node\chunks\dep-971d9e33.js:38318:30) at async doTransform (C:\Users\kecrily\Desktop\iles-bug-reproduction\node_modules\.pnpm\vite@2.8.4\node_modules\vite\dist\node\chunks\dep-971d9e33.js:53014:29) ```

Screenshots πŸ“·

Provide console or browser screenshots of the problem.

ElMassimo commented 2 years ago

Hi, thanks for reporting!

Seems like a Windows incompatibility, I'll take a look during the week.

ElMassimo commented 2 years ago

@kecrily Please try @islands/feed 0.1.2, which might fix this issue. Thanks again for reporting!