React is not defined when install one exported component on - bit

Describe the bug

Can not use the exported component in another project due to above error on runtime.

Steps to Reproduce

  1. Follow Bit for React tutorial and export some component successfully at here
  2. Install component in another project with this syntax: import ActionButtons from '@bit/vibe.react-admin-components.components';
  3. Run and see error in console

Expected Behavior

Exported component should be run without any error.

Screenshots, exceptions and logs

image Error example when runtime


  • Bit version: 14.8.8
  • Node version: 10.17.0
  • npm version: 6.11.3
  • Platform: Windows
  • Bit compiler (include version):
  • Bit tester (include version):

Additional context

I have asked on stackoverflow:

Any help will be appreciated! Thanks.

Asked Oct 02 '21 18:10
avatar shinaBR2

1 Answer:

Hi @shinaBR2 thanks for opening the issue. I responded to you in Stackoverflow. The error was because the compiler not supported React 17, I published a new version of it and now it supports React 17. please use the new version and re-export your component.

Answered Feb 01 '21 at 21:31
avatar  of JoshK2