You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "free312 (via GitHub)" <gi...@apache.org> on 2026/02/24 08:41:48 UTC

[I] Tab element in Layout fails with "TypeError: (intermediate value).difference is not a function" in QQ Browser [superset]

free312 opened a new issue, #38212:
URL: https://github.com/apache/superset/issues/38212

   ### Bug description
   
   When using the Tab element in the Layout section to build a dashboard and previewing the dashboard in QQ Browser, the page fails to load and throws a JavaScript TypeError. This issue does not occur in modern browsers like Chrome, Firefox, or Edge, indicating compatibility with QQ Browser's JavaScript engine (which lacks extended Set prototype methods like difference/union used in the Tab element logic).
   
   <!-- Failed to upload "微信图片_20260224163951_79006_1.png" -->
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Not applicable
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Tab element in Layout fails with "TypeError: (intermediate value).difference is not a function" in QQ Browser [superset]

Posted by "free312 (via GitHub)" <gi...@apache.org>.
free312 commented on issue #38212:
URL: https://github.com/apache/superset/issues/38212#issuecomment-3950096275

   <img width="1905" height="974" alt="Image" src="https://github.com/user-attachments/assets/572e2ea6-140d-4ca5-b40f-4dc2b7f91818" />


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Tab element in Layout fails with "TypeError: (intermediate value).difference is not a function" in QQ Browser [superset]

Posted by "free312 (via GitHub)" <gi...@apache.org>.
free312 closed issue #38212: Tab element in Layout fails with "TypeError: (intermediate value).difference is not a function" in QQ Browser
URL: https://github.com/apache/superset/issues/38212


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Tab element in Layout fails with "TypeError: (intermediate value).difference is not a function" in QQ Browser [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #38212:
URL: https://github.com/apache/superset/issues/38212#issuecomment-3950110564

   <!-- Greeting -->
   Hi @free312! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
   
   <!-- Answer -->
   This is a known issue introduced in Superset 5.0.0. The error occurs because [PR #35265](https://github.com/apache/superset/pull/35265) added `Set.prototype.difference()` and `Set.prototype.union()` methods in the [dashboard state reducer](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/reducers/dashboardState.js#L211-L224) to manage active/inactive tab states. These are ES2025 features that require Chrome 122+ and aren't supported in older browsers like QQ Browser.
   
   This issue is tracked in [#35583](https://github.com/apache/superset/issues/35583).
   
   **Workarounds:**
   1. **Upgrade browser** to Chrome 122+ or a modern browser that supports `Set.prototype.difference`
   2. **Use a different browser** (Chrome, Firefox, Edge) for accessing dashboards with tabs
   
   The root cause is that despite Superset having polyfill infrastructure with core-js, these Set methods aren't being polyfilled because the [browserslist only targets the last 3 versions of modern browsers](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/package.json#L78-L83).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/dba98bb7-bc77-4046-b4fb-b356237185e9?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/dba98bb7-bc77-4046-b4fb-b356237185e9?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/dba98bb7-bc77-4046-b4fb-b356237185e9?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/dba98bb7-bc77-4046-b4fb-b356237185e9?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/dba98bb7-bc77-4046-b4fb-b356237185e9?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/dba98bb7-bc77-4046-b4fb-b356237185e9?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/dba98bb7-bc77-4046-b4fb-b356237185e9?feedback_type=other)</sup>
   
   [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20issue%20introduced%20in%20Superset%205.0.0.%20The%20error%20occurs%20because%20%5BPR%20%2335265%5D%28https%3A//github.com/apache/superset/pull/35265%29%20added%20%60Set.prototype.difference%28%29%60%20and%20%60Set.prototype.union%28%29%60%20methods%20in%20the%20%5Bdashboard%20state%20reducer%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/dashboard/reducers/dashboardState.js%23L211-L224%29%20to%20manage%20active/inactive%20tab%20states.%20These%20are%20ES2025%20features%20that%20require%20Chrome%20122%2B%20and%20aren%27t%20supported%20in%20older%20browsers%20like%20QQ%20Browser.%0A%0AThis%20issue%20is%20tracked%20in%20%5B%2335583%5D%28https%3A//github.com/apache/s
 uperset/issues/35583%29.%0A%0A%2A%2AWorkarounds%3A%2A%2A%0A1.%20%2A%2AUpgrade%20browser%2A%2A%20to%20Chrome%20122%2B%20or%20a%20modern%20browser%20that%20supports%20%60Set.prototype.difference%60%0A2.%20%2A%2AUse%20a%20different%20browser%2A%2A%20%28Chrome%2C%20Firefox%2C%20Edge%29%20for%20accessing%20dashboards%20with%20tabs%0A%0AThe%20root%20cause%20is%20that%20despite%20Superset%20having%20polyfill%20infrastructure%20with%20core-js%2C%20these%20Set%20methods%20aren%27t%20being%20polyfilled%20because%20the%20%5Bbrowserslist%20only%20targets%20the%20last%203%20versions%20of%20modern%20browsers%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/package.json%23L78-L83%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me
 %20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/38212)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org