-
Notifications
You must be signed in to change notification settings - Fork 30
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
Still issues with broadcast-channel dependency and svelte-kit #45
Comments
@frederikhors can you provide a small sample project to reproduce? I can try taking a look to see what the issue is then |
I'm using Windows 10. |
I have no issue on Linux. Maybe you're hitting the Vite Windows bug vitejs/vite#2393 |
Oh. Although the error is slightly different. We wait for that bug to be closed so check back here, please. |
Hi, I have the same issue. I'm using macOS.
ReferenceError: require is not defined My dep: |
@marcomonsanto can you provide a repo and instructions to reproduce? I just tried the steps above again that @frederikhors provided and still don't see any error |
Hi, I don't think this is a window-only bug, cuz I also got this error using Ubuntu Linux. Even I tested a basic repo running in codesandbox, I still got the same error. Here is a reproduce repo made in Code Sandbox, hope this help: https://codesandbox.io/s/svelte-query-bug-141-f0ksh Updates: For workaround, make sure vite: {
optimizeDeps: {
include: ['broadcast-channel']
},
} |
Thanks for providing the repo. That's a bug in |
This isn't a real solution that can be merged into https://github.com/dimfeld/broadcast-channel I'm not using the broadcast functionality in svelte-query, so can't guarantee that it still works, but the changes were minor. Hopefully it helps someone until a proper solution arrives: You can use pnpm overrides, yarn resolutions, or a similar mechanism to force svelte-query to use it. |
I am getting
using adapter-static |
There needs to be a new release of the library. There was an improvement committed, but not released yet: #51 (comment) |
Hello, A new version (v1.5.0) of this library has been published today. If you need to use the experimental If you still encounter issues with v1.5.0. Please open a new issue. |
@amen-souissi @benmccann I tried
1.4.1
now.We still have a problem with
broadcast-channel
if I remove these lines fromsvelte.config.js
:This is the log:
Do you have any idea?
Maybe this is related to
"type": "module"
inpackage.json
which is the default in a new SvelteKit project, right?The text was updated successfully, but these errors were encountered: