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

"Uncaught Error: ES modules may not assign module.exports or exports.*" for component overviews and previews when using a custom tailwind env #7434

Open
TropicolX opened this issue May 22, 2023 · 0 comments
Labels

Comments

@TropicolX
Copy link

Describe the bug

When I create a custom tailwind env (via this article on bit https://bit.dev/blog/integrating-tailwind-css-and-bit-for-component-styling-lgntqstt/#live-playground-support), I set my UI components to use the env, and then I run the bit start, the preview and overview of the components don't work and I get this error:
image

Expected Behavior

Seeing my react component overview and previews

Screenshots, exceptions and logs

image image

Specifications

  • Bit version: 0.1.48
  • Workspace type: harmony
  • Node version: 18.16.0
  • npm / yarn version: 9.5.1 / 1.22.19
  • Platform: Apple M1 Pro MacOS Ventura 13.3.1

for harmony workspace

  • relevant env: shopthru.shared-scope/tailwind-env

Additional context

  • I've tried deleting node_modules folder and pnpm-lock.yaml file, running bit clear-cache && bit capsule delete --all && bit install e.t.c but I still get the same error.
  • Tagging and exporting the components works fine and I can see the preview on bit.cloud but it doesn't work on development server
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant