Worker generation issue: missing lookup constants + u is not defined in minified worker #790
Replies: 1 comment
-
|
Hi @m2gi-mohamami, sorry to hear you're running into problems. I have never seen the first issue you mention (data definitions not present in Is your project in a publicly-accessible git repository? If not, it would be great if you could either a) provide me access to the model (either set me up with permissions or just email me the project or at least the mdl) or b) help craft a small isolated mdl that reproduces each issue. To answer your specific questions:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi SDEverywhere team,
We are using @sdeverywhere/plugin-worker in a JS generation setup and are seeing recurring runtime issues in the generated worker(model fails to loas in some cases ).
Observed issues
• Some lookup data constants (_...data...) are present in processed.js but missing in final worker.js, causing runtime reference errors.
• In some generated SUM/LOOKUP expressions, [u] is used without a corresponding for (let u = 0; u < 8; u++), leading to u is not defined.
Current workaround
We currently use a local post-build patch script that:
This workaround stabilizes runtime behavior, but we would prefer an official solution without external patch scripts.
Questions
Thanks in advance.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions