Skip to content
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

embedded-sdk Issue while integrating it with Angular #22754

Closed
topratiksharma opened this issue Jan 17, 2023 · 2 comments
Closed

embedded-sdk Issue while integrating it with Angular #22754

topratiksharma opened this issue Jan 17, 2023 · 2 comments
Assignees
Labels
#bug Bug report

Comments

@topratiksharma
Copy link

topratiksharma commented Jan 17, 2023

A clear and concise description of what the bug is.

How to reproduce the bug

1.) Install embedded sdk in your Angular application.

2.) TS code for integrating superset

Embed() {
    // const token = await this.fetchGuestTokenFromBackend();
    embedDashboard({
      id: 'my dashboard token', // given by the Superset embedding UI
      supersetDomain: 'http://localhost:8088', // my localhost
      mountPoint: document.getElementById('my-dashboard'), // any html element that can contain an iframe
      fetchGuestToken: () => this.fetchGuestTokenFromBackend(),
      dashboardUiConfig: {
        // dashboard UI config: hideTitle, hideTab, hideChartControls, filters.visible, filters.expa0nded (optional)
        hideTitle: true,
        // filters: { expanded: true },
      },
    });
  }
  1. See error

Expected results

Embedding should work

Actual results

Module not found: Error: Can't resolve '@superset-ui/switchboard' in 'D:\test\node_modules\@superset-ui\embedded-sdk\lib'

Screenshots

image

Environment

(please complete the following information):

  • browser type and version: Chrome
  • superset version: superset version - "@superset-ui/embedded-sdk": "0.1.0-alpha.7",
  • python version: python --version NOT USED
  • node.js version: node -v : V16.10.0
  • any feature flags active: none

Add any other context about the problem here.

@topratiksharma topratiksharma added the #bug Bug report label Jan 17, 2023
@topratiksharma topratiksharma changed the title Issue while embedding in Angular using embedded-sdk embedded-sdk Issue while embedding in Angular Jan 17, 2023
@topratiksharma topratiksharma changed the title embedded-sdk Issue while embedding in Angular embedded-sdk Issue while integrating it with Angular Jan 17, 2023
@rusackas
Copy link
Member

Looks like a duplicate of #22747 but I appreciate the additional context.

@rusackas
Copy link
Member

Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please re-open this issue, open a new Issue with updated context, or raise a PR to address the problem. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

No branches or pull requests

3 participants