RafidMuhymin / astro-imagetools

Image Optimization tools for the Astro JS framework
astro-imagetools-docs.vercel.app
MIT License
388 stars 46 forks source link

Run failed on Windows #45

Open ghost opened 2 years ago

ghost commented 2 years ago

Hi, thanks for you hard work.

I ran to this error when running on Windows. In Linux, it works fine.

> @example/basics@0.0.1 dev
> astro dev --experimental-integrations

file:///D:/Project/astro-site/node_modules/astro-imagetools/utils/runtimeChecks.js:67
export const pwd = process.env.PWD.split(path.sep).join(path.posix.sep);
                                   ^

TypeError: Cannot read properties of undefined (reading 'split')
    at file:///D:/Project/astro-site/node_modules/astro-imagetools/utils/runtimeChecks.js:67:36
RafidMuhymin commented 2 years ago

Thank you for reporting the issue @pinanek23 ! The latest release v0.6.3 contains fix for this error. Can you check if you are still getting any errors on Windows?

ghost commented 2 years ago

I upgraded to 0.6.3. Now i can start the dev server but still run into another issue. image

RafidMuhymin commented 2 years ago

What are you passing as the value of the src prop @pinanek23 ?

ghost commented 2 years ago

Hey @RafidMuhymin, i've created this repo astro-imagestools-bug, you can check this repo. It works totally fine on Linux.