Skip to content
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

Run failed on Windows #45

Open
ghost opened this issue May 2, 2022 · 4 comments
Open

Run failed on Windows #45

ghost opened this issue May 2, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented May 2, 2022

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/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
Copy link
Owner

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
Copy link
Author

ghost commented May 2, 2022

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

@RafidMuhymin
Copy link
Owner

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

@ghost
Copy link
Author

ghost commented May 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant