question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using Text component for production.

See original GitHub issue

When using the Text component and creating a production build, it causes the error:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]=

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
matous94commented, Sep 5, 2018

I have a suspicion that there is no named export “Button” in @rebass/grid. Try import {Button} from "rebass"

0reactions
empireofryancommented, Sep 5, 2018

Thanks @trabek that solved it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invariant Violation: Text strings must be rendered within a ...
If error is a string(even empty string), it must be wrapped with <Text /> in React Native, which is different from web.
Read more >
Throw error and display message - MATLAB error - MathWorks
When you throw an error, MATLAB captures information about it and stores it in a data structure that is an object of the...
Read more >
Problem adding components to production order using ...
Hi experts, I need to add components to production order. Before doing that I delete an existing component using: CALL FUNCTION ...
Read more >
Text Component - Celonis Documentation
Use a Text Component, to display static or dynamic text in your analysis sheet. You may for example use a text component to...
Read more >
XSL Transformations (XSLT) Version 3.0 - W3C
[ERR XTSE0010] It is a static error if an XSLT-defined element is used in a context where it is not permitted, if a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found