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

ReferenceError: HTMLElement not defined during Vite-SSG build with img-comparison-slider #129

Closed
ademtonay opened this issue Dec 5, 2023 · 3 comments
Labels

Comments

@ademtonay
Copy link

Issue Summary:

I am encountering an issue during the build process of my Vite-SSG project. The error is related to the img-comparison-slider module, and it appears to be a ReferenceError: HTMLElement is not defined problem.

Environment:

  • Node.js version: 18.18.0
  • Vite version: 5.0.3
  • Operating System: [mac OS]

Steps to Reproduce:

  1. Run vite-ssg build on a project that includes the img-comparison-slider module.
  2. Observe the error mentioned in the issue description

Error Details:

[vite-ssg] Build for client...
vite v5.0.3 building for production...
...
ReferenceError: HTMLElement is not defined
    at node_modules/.pnpm/img-comparison-slider@8.0.5/node_modules/img-comparison-slider/dist/index.js:1:4062

Additional Information:

  • The project is using Vite-SSG.
  • The img-comparison-slider module version is 8.0.5.

Expected Behavior:

The build process should complete without encountering a ReferenceError related to HTMLElement.

@sneas
Copy link
Owner

sneas commented Dec 5, 2023

Thank you for opening the issue, Adem. I will fix it in the upcoming days.

@sneas sneas closed this as completed in b4be5d6 Dec 9, 2023
sneas pushed a commit that referenced this issue Dec 9, 2023
# [img-comparison-slider-v8.0.6](img-comparison-slider-v8.0.5...img-comparison-slider-v8.0.6) (2023-12-09)

### Bug Fixes

* undefined HTMLElement in SSR ([b4be5d6](b4be5d6)), closes [#129](#129)
@sneas
Copy link
Owner

sneas commented Dec 9, 2023

🎉 This issue has been resolved in version img-comparison-slider-v8.0.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sneas sneas added the released label Dec 9, 2023
@ademtonay
Copy link
Author

Thanks. Good job!

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

No branches or pull requests

2 participants