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

Unable to use <Text> component from xy-ui in Case Study markdown file #56

Closed
johnrobbjr opened this issue Aug 24, 2023 · 1 comment
Closed

Comments

@johnrobbjr
Copy link
Member

johnrobbjr commented Aug 24, 2023

When adding a component inside of a case study markdown file, an error is thrown. Maybe because it's inside of the component?

See commit (this code throws the below error): bf8b12a

Server Error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

This error happened while generating the page. Any console logs will be displayed in the terminal window.

Trying to make this change to make the answer text in the Case Studies more easily scannable, referencing style of interviews like this one

@moklick
Copy link
Member

moklick commented Aug 31, 2023

you need to do import { Text } from 'xy-ui' instead of import Text from 'xy-ui' in order to import the correct component.

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

No branches or pull requests

3 participants