-
Notifications
You must be signed in to change notification settings - Fork 141
No longer works in web worker since version 1.0.3 #1126
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
Comments
Thanks for the report. Can you confirm that 1.0.2 does not have the same issue in a worker? |
@skddc Yeah, works fine with 1.0.2. |
I think the issue might be in the build generated by Webpack. In version 1.0.3 the build contains this: [...] exports.RemoteStorage=t():e.RemoteStorage=t()}(window,function(){ [...] while in version 1.0.2 it looked like this: [...] exports.RemoteStorage=t():e.RemoteStorage=t()}(this,function(){ [...] using |
Ah, we did update Webpack to a new major at some point. Thanks for the confirmation. |
Fixes #1126 This fixes a reference error when using the build in a WebWorker. This is a workaround taken from webpack/webpack#6642 (comment) and should be replaced by `target: "universal" when webpack/webpack#6525 has been implemented.
I created a PR at #1127 that should fix this issue. |
Fixes #1126 This fixes a reference error when using the build in a WebWorker. This is a workaround taken from webpack/webpack#6642 (comment) and should be replaced by `target: "universal" when webpack/webpack#6525 has been implemented.
Hey folks 👋
I was using version
1.0.2
in my project and decided to upgrade to1.0.3
.But now I'm getting the following error:
The issue only pops up in web workers.
I'm using remoteStorage through browserify and I'm requiring it as follows:
Any thoughts?
Thanks!
The text was updated successfully, but these errors were encountered: