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

   ### Bug description
   
   ### Bug description
   When using the Superset Embedded SDK, clicking on "View as table" in a 
chart's dropdown menu results in a crash with the AG Grid error `#272: No AG 
Grid modules are registered!`. 
   
   However, this feature works perfectly fine when accessing the dashboard 
directly through the main Superset UI. This indicates that the 
`ModuleRegistry.registerModules([AllCommunityModule])` initialization is 
present in the main app's entry point, but was forgotten in the embedded entry 
point.
   
   ### How to reproduce the bug
   1. Embed any dashboard in an external application using the 
`@superset-ui/embedded-sdk`.
   2. In the embedded iframe, click the three dots (`...`) on any chart.
   3. Click "View as table".
   4. The table does not load. Open the browser console to see the error:
   `AG Grid: error #272 No AG Grid modules are registered! It is recommended to 
start with all Community features via the AllCommunityModule`
   
   ### Expected results
   The "View as table" modal should properly load the AG Grid component in the 
embedded iframe, exactly as it does in the main Superset application.
   
   ### Actual results
   The modal is empty and the console throws an AG Grid module registration 
error.
   
   ### Environment
   * superset version: latest-dev
   * python version: 3.10
   * node.js version: 22.14.0
   * any feature flags active: 
   
   <img width="1445" height="1282" alt="Image" 
src="https://github.com/user-attachments/assets/c323ef43-554a-4ed9-948b-f6413e94078e";
 />
   
   `EMBEDDED_SUPERSET = True`
   
   ### Additional context
   The issue is specifically tied to the entry point used by the embedded view. 
The AG Grid V35 migration requires explicit module registration, which seems 
missing in the embedded setup initialization.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.10
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to