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

Not working in the application where semantic ui is imported #41

Open
krajasekhar opened this issue May 17, 2019 · 2 comments
Open

Not working in the application where semantic ui is imported #41

krajasekhar opened this issue May 17, 2019 · 2 comments

Comments

@krajasekhar
Copy link

I am trying to use this module in my project. But it is giving below errors.

  1. React, react-dom modules are missing.
  2. Warning: Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
    Warning: Failed context type: The context printProvider is marked as required in Print, but its value is undefined.

3.Uncaught Invariant Violation: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

https://stackblitz.com/edit/raju-print

@a-x-
Copy link
Owner

a-x- commented May 19, 2019

I didn't repro

also, stackblitz does not work for me (¯\_(ツ)_/¯)
I moved the example to codesandbox: https://codesandbox.io/s/reacteasyprintissue41-2160b

  1. I looked Problems panel: no errors
  2. I pressed the Print button
  3. I looked Problems again: no error again

@eDubrovsky
Copy link

eDubrovsky commented Oct 1, 2019

Same issue.
@a-x- open your link on codesandbox and change from <Print printOnly> to <Print name='printName'> and you will see this errors in Chrome console:

Warning: Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of r.

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