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

Using a ?sharedworker import causes early exit during build. #120

Closed
JarekToro opened this issue Jun 13, 2023 · 2 comments
Closed

Using a ?sharedworker import causes early exit during build. #120

JarekToro opened this issue Jun 13, 2023 · 2 comments

Comments

@JarekToro
Copy link

I found #23 but that seems to only apply to inline imports.

It runs without error when in dev. But running vite build causes this error:

Error: Unexpected early exit. This happens when Promises returned by plugins cannot resolve. Unfinished hook action(s) on exit:
(vite:worker) transform "/path-to-project/file.sharedworker.ts?sharedworker"
    at process.handleBeforeExit (file:///path-to-project/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:25257:28)
    at Object.onceWrapper (node:events:626:26)
    at process.emit (node:events:511:28)
@ArnaudBarre
Copy link
Member

Hi,

I just tested a basic example of using a shared worker, it works both in dev and build. Can you provide a small reproduction?

Why reproductions are required

@JarekToro
Copy link
Author

It ended up being a circular dependency issue that was at the root of the shared worker problem. Not related to this plugin.

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

No branches or pull requests

2 participants