Comments (4)
@diegopego Thanks for the report!
This must be a problem with web workers defined within an SPA project. When bundling runs for the web worker, WebSharper mistakenly also includes the all the code based on SPAEntryPoint in the MySPA.worker.js
bundle too, which in this case has WS.UI stuff using DOM Elements, not available in web worker context.
To fix: web worker bundling should ignore the SPAEntryPoint and JavaScriptExport attributes.
from core.
Well, just to be clear, this needs a compiler fix.
from core.
I'm always willing to learn more in order to help. Thank you!
from core.
@diegopego Thanks for the report, I have pushed small fix, will do a CI build soon
from core.
Related Issues (20)
- Add proxy for DateTime.ToString: string -> string
- Add StubInterfaces option to allow all interfaces to be treated as they would have [<Stub>] attribute HOT 1
- Do not pre-compile quotations in JS-annotated code
- Add support for `StringBuilder`
- Add support for `System.Convert`
- Class with a base class with inlines only
- Add ImportFile helper
- Import attribute handling HOT 1
- Incorrect JS translation in case of invalid characters in name
- Question about .NET Framework HOT 2
- Allow name collision on interfaces with Stub HOT 1
- Treat interfaces as AbstractClasses when interface is marked as Stub HOT 1
- Optional parameter handling in Stub annotated interfaces. HOT 1
- Struct copy handling issues
- Correct capitalization in the HTML5 namespace
- ParamArray overload resolution in WIG
- System.Exception loses message
- Allow sitelets to return SPAs HOT 4
- Allow `wsconfig.json` to define overrides for Debug/Release configurations
- Add missing Style property for HTMLElement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.