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

ImagePreview nextjs 2.34.1 IntersectionObserver is not defined #1595

Closed
1 task done
wanglihuaya opened this issue May 8, 2023 · 3 comments · Fixed by #1594
Closed
1 task done

ImagePreview nextjs 2.34.1 IntersectionObserver is not defined #1595

wanglihuaya opened this issue May 8, 2023 · 3 comments · Fixed by #1594
Assignees

Comments

@wanglihuaya
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

ImagePreview

Semi Version

2.34.1

Current Behavior

2.34.1, nextjs, build, error, IntersectionObserver is not defined

2.32.2 is ok

Expected Behavior

build success

Steps To Reproduce

  1. nextjs
  2. yarn build

ReproducibleCode

2.34.1

Environment

- OS: MacOS
- browser: Chrome

Anything else?

No response

@YyumeiZhang
Copy link
Collaborator

2.34.1 版本中关于 Image 组件的修改中将 intersectionObserver 的调用放在了 construct 中,导致在 ssr 服务端渲染时候,会出现找不到 interSectionObserver 的情况,我们近期修改下

@YyumeiZhang YyumeiZhang self-assigned this May 11, 2023
@wanglihuaya
Copy link
Author

2.34.1 版本中关于 Image 组件的修改中将 intersectionObserver 的调用放在了 construct 中,导致在 ssr 服务端渲染时候,会出现找不到 interSectionObserver 的情况,我们近期修改下

ok

@pointhalo
Copy link
Collaborator

fix v2.36.0

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