dosubot[bot] commented on issue #30241: URL: https://github.com/apache/superset/issues/30241#issuecomment-2343854861
<!-- Greeting --> Hey @Xyrai! I'm here to help you with any bugs, questions, or contributions you have. Feel free to ask me anything! <!-- Answer --> I found some similar closed issues that might help you resolve the build error: 1. [embedded-sdk Issue while integrating it with Angular](https://github.com/apache/superset/issues/22754) - This issue was last updated on February 15, 2024. It suggests explicitly installing an older version of `@superset-ui/switchboard` to resolve the issue: ```sh yarn add @superset-ui/switchboard@^1.5.0 ``` 2. [JavaScript Embed SDK - Module not found: Can't resolve '@superset-ui/switchboard'](https://github.com/apache/superset/issues/22747) - This issue was also last updated on February 15, 2024, and provides a similar workaround: ```sh yarn add @superset-ui/switchboard@^1.5.0 ``` 3. [@superset-ui/embedded-sdk 0.1.0-alpha.8 not working](https://github.com/apache/superset/issues/22683) - This issue suggests a temporary fix by modifying the `package.json` file in the `node_modules/@superset-ui/embedded-sdk` directory: 1. Change dependencies in `package.json` from `"@superset-ui/switchboard": "^0.18.26-0"` to `"=0.18.26-0"`. 2. Manually run `npm install`. Additionally, ensure that your build configuration (e.g., Webpack, Rollup) is set up to handle the `main` and `module` fields specified in the `@superset-ui/switchboard` package: ```json { "main": "lib/index.js", "module": "esm/index.js" } ``` If you are using Webpack, you might need to configure it to resolve `.js` and `.mjs` files: ```javascript module.exports = { resolve: { extensions: ['.js', '.mjs', '.json'] } }; ``` These steps should help your build system locate and correctly resolve the entry points for the `@superset-ui/switchboard` package <sup>[[1]](https://github.com/apache/superset/issues/22754)</sup><sup>[[2]](https://github.com/apache/superset/issues/22747)</sup><sup>[[3]](https://github.com/apache/superset/issues/22683)</sup>. <!-- 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]
