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

lex-web-ui-loader not loading from baseUrl? #627

Open
yaodaniel opened this issue Mar 2, 2024 · 3 comments
Open

lex-web-ui-loader not loading from baseUrl? #627

yaodaniel opened this issue Mar 2, 2024 · 3 comments

Comments

@yaodaniel
Copy link

yaodaniel commented Mar 2, 2024

I'm currently trying to upgrade to use version 0.20.6 pre-built libraries. I was previously using 0.19.9.

For some reason now the new loader is not loading "aws-sdk-2.903.0.min.js" from the right location (with the baseUrl pre-appended), also it looks like it's trying to load "lex-web-ui-loader-config.json" even though my loader config specifies to not load from Json file.

The other dependency js/css files are being loaded properly from my baseUrl.

My loader config:
const loaderConfig = { baseUrl: 'https://myCDN/0.20.6/', shouldLoadConfigFromJsonFile: false, shouldLoadMinDeps: true, };

const uiConfig = { ui: { ... }, lex: {...}, };

The loading logic:
const loader = new window.ChatBotUiLoader.FullPageLoader(loaderConfig); loader.load(uiConfig);

Could someone tell me what I'm missing?

@atjohns
Copy link
Contributor

atjohns commented Mar 4, 2024

We did move how the external dependencies load in v0.20.0, going from a CDN to being hosted in the S3 bucket. This might have caused an issue with your scenario. Is the code you shared in your parent page and you are using a direct uiConfig object to load the Web UI?

@yaodaniel
Copy link
Author

Is the code you shared in your parent page and you are using a direct uiConfig object to load the Web UI

Yes. That is correct.

For now I've gotten around this by explicitly loading the needed dependencies myself before calling the load function. But would be nice to see the loader working properly again.

@atjohns
Copy link
Contributor

atjohns commented Mar 5, 2024

Thanks yes I will look into it and try to figure out what broke here. I apologize but I don't have much experience with your specific configuration so I'll have to set something up on my side to mimic.

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

No branches or pull requests

2 participants