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

client is not defined #396

Open
umi-soft opened this issue Apr 3, 2024 · 0 comments
Open

client is not defined #396

umi-soft opened this issue Apr 3, 2024 · 0 comments

Comments

@umi-soft
Copy link

umi-soft commented Apr 3, 2024

Describe the bug

I directly copied your code demo code (playground) and it can run normally in the native Vite development environment, but it cannot run properly after being packaged through Vite. The error message is: math.sharedworker-d2c04053.js:1 Uncaught ReferenceError: client is not defined

I only changed the version information in the configuration file (packge.json)

  • vite ^4.4.9
  • vite-plugin-sharedworker ^0.2.0

My environmental information:

  • vite ^4.4.9
  • nvm nodejs v16.19.1

Reproduction

No response

System Info

No response

Used Package Manager

None

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