astro-imagetools icon indicating copy to clipboard operation
astro-imagetools copied to clipboard

Run failed on Windows

Open ghost opened this issue 2 years ago • 4 comments

Hi, thanks for you hard work.

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

  • astro: 1.0.0-beta.20
  • astro-imagetools: 0.6.2
  • node: 16.15.0
> @example/[email protected] 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

ghost avatar May 02 '22 03:05 ghost

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?

RafidMuhymin avatar May 02 '22 09:05 RafidMuhymin

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

pinanek avatar May 02 '22 10:05 pinanek

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

RafidMuhymin avatar May 02 '22 11:05 RafidMuhymin

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

pinanek avatar May 02 '22 11:05 pinanek