dosubot[bot] commented on issue #30207:
URL: https://github.com/apache/superset/issues/30207#issuecomment-2339829848

   <!-- Greeting -->
   Hello, @ThanhDC-ominext! I'm here to help you out with any bugs, questions, 
or contributions you have regarding this project. Let's tackle this issue 
together!
   
   <!-- Answer -->
   I found several similar issues and discussions related to the 
`@superset-ui/switchboard` package and its integration with other tools:
   
   1. **Closed Issues:**
      - [embedded-sdk Issue while integrating it with 
Angular](https://github.com/apache/superset/issues/22754) 
<sup>[[1]](https://github.com/apache/superset/issues/22754)</sup>
      - [JavaScript Embed SDK - Module not found: Can't resolve 
'@superset-ui/switchboard'](https://github.com/apache/superset/issues/22747) 
<sup>[[2]](https://github.com/apache/superset/issues/22747)</sup>
      - [@superset-ui/embedded-sdk 0.1.0-alpha.8 not 
working](https://github.com/apache/superset/issues/22683) 
<sup>[[3]](https://github.com/apache/superset/issues/22683)</sup>
   
   2. **Suggested Solutions:**
      - Explicitly install version `1.5.0` of `@superset-ui/switchboard`:
        ```sh
        yarn add @superset-ui/switchboard@^1.5.0
        ```
        This workaround has helped others resolve similar issues 
<sup>[[2]](https://github.com/apache/superset/issues/22747)</sup>.
   
      - Temporary fix by modifying `package.json`:
        1. Go to `node_modules/@superset-ui/embedded-sdk`
        2. Change dependencies in `package.json` from 
`"@superset-ui/switchboard": "^0.18.26-0"` to `"=0.18.26-0"`
        3. Manually run `npm install` 
<sup>[[3]](https://github.com/apache/superset/issues/22683)</sup>.
   
   The `main` and `module` fields specified in the `package.json` of the 
`@superset-ui/switchboard` package are:
   - `main`: `"lib/index.js"`
   - `module`: `"esm/index.js"` 
<sup>[[4]](https://github.com/apache/superset/blob/master/superset-frontend/packages/superset-ui-switchboard/package.json)</sup>.
   
   These fields might be causing the issue with Vite. You can try the suggested 
solutions to see if they resolve the problem.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
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