aws-samples / aws-samples/aws-lex-web-ui
lex-web-ui-loader not loading from baseUrl?
- Dominant language
- JavaScript
- Stars
- 817
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Research direction
Start by reproducing the issue with the 0.20.6 pre-built libraries, the shown baseUrl, and shouldLoadConfigFromJsonFile set to false. Inspect the loader's dependency and configuration-loading entry points to trace the requested URLs; done means aws-sdk-2.903.0.min.js uses the baseUrl and the JSON config is not requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100