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

requiring instead of importing #79

Closed
mariarodrigu opened this issue Sep 11, 2019 · 0 comments
Closed

requiring instead of importing #79

mariarodrigu opened this issue Sep 11, 2019 · 0 comments

Comments

@mariarodrigu
Copy link

Hey guys!
I'm having the following error when rendering

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

This happens only when using

const Steps = require('rc-steps');

Instead of

import Steps from 'rc-steps';

The problem is that, because a limitation at my work, I can't use import. Is there any other workaround to make this module work with require?

Thanks in advance!

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

1 participant