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

[Portal] v2 not working with NextJS / SSR #2191

Closed
jdolinski1 opened this issue Mar 1, 2018 · 1 comment
Closed

[Portal] v2 not working with NextJS / SSR #2191

jdolinski1 opened this issue Mar 1, 2018 · 1 comment

Comments

@jdolinski1
Copy link

Bug report

  • Package version(s): 2.0.0-rc.2
  • Browser and OS versions: Firefox 58, Windows 7 (x64)

Steps to reproduce

  1. Use BlueprintJS 2.0.0-rc.2 + NextJS
  2. Include/import and use <Tooltip> component

Actual behavior

Console prints error
ReferenceError: document is not defined
...portal.js:33:31

Expected behavior

Page should render without errors

Btw

When downgrading to @blueprintjs/core@1.35.5 everything works fine.

@jdolinski1 jdolinski1 changed the title v2 <Tooltip> not working with NextJS v2 <Tooltip> not working with NextJS / SSR Mar 1, 2018
@giladgray
Copy link
Contributor

this is a Portal issue, renaming accordingly.

@giladgray giladgray changed the title v2 <Tooltip> not working with NextJS / SSR [Portal] 2 not working with NextJS / SSR Mar 2, 2018
@giladgray giladgray changed the title [Portal] 2 not working with NextJS / SSR [Portal] v2 not working with NextJS / SSR Mar 2, 2018
@giladgray giladgray added this to the 2.0.0 milestone Mar 2, 2018
@giladgray giladgray self-assigned this Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants