Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

TransitionGroup CJS require not valid #258

Open
Vasikaran opened this issue Jan 9, 2020 · 1 comment
Open

TransitionGroup CJS require not valid #258

Vasikaran opened this issue Jan 9, 2020 · 1 comment

Comments

@Vasikaran
Copy link

What is the issue?

In the latest version of velocity-react, you have used the latest react-transition-group.

On it, they export the TransitionGroup component as the default export. Go to the line

But in your velocity-transition-group.js file, you have required it as the CJS module and without mentioning the default key. Go to the line

How to fix?

After an hour of debugging, I saw the line unexpectedly. I require it as a default then it works fine.

Please check and fix this issue!

@fionawhim
Copy link
Collaborator

Sounds like maybe your Babel config has noInterop set to true?

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

No branches or pull requests

2 participants