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

Not working with vite (react js) #2991

Open
wellingtonollv opened this issue Nov 13, 2023 · 1 comment
Open

Not working with vite (react js) #2991

wellingtonollv opened this issue Nov 13, 2023 · 1 comment

Comments

@wellingtonollv
Copy link

wellingtonollv commented Nov 13, 2023

Hi there !

I'm currently integrating the @looker/visualizations library into a project that uses Vite(React). However, I've encountered an export error related to @looker/design-tokens.

Here's the error message that appears when I try to run the project with npm run dev:


✘ [ERROR] No matching export in "node_modules/@looker/design-tokens/dist/esm/index.js" for import "Theme"

    node_modules/@looker/components/lib/module/index.js:58:16:
      58 │ export { theme, Theme } from '@looker/design-tokens';
         │                 ~~~~~
         ╵                 theme

  Did you mean to import "theme" instead?

    node_modules/@looker/design-tokens/dist/esm/theme/theme.js:7:13:
      7 │ export const theme = {

To reproduce the problem, I've set up a StackBlitz here: Vite + @looker/components Example

Could you please advise on how to resolve this issue or if there's a workaround available? Thank you for your help!

Best regards

@alan-nousot
Copy link

Also having this issue- any updates?

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

2 participants