Open shah-vtx opened 3 months ago
We had some fixes related to Webpack, please try 4.18.*
I just tried 4.18.0 and still seeing the same issue.
Looks like another regression with globalize.
The i
refers to Globalize._numberRound
where the Globalize
is imported from globalize/dist/globalize-runtime
as CJS module:
The runtime module does not contain the function:
Instead, it is added in globalize/dist/globalize-runtime/number
, defined in the module:
We seem to bundle-in everything needed for it to work, and respect the execution order of modules.
cc @compulim
@shah-vtx could you share your webpack configuration and exact versions of webopack and plugins used?
There is a known issue with Webpack v5 mentioned in changelog:
[4.17.0] - 2024-05-06
Known issues
- Web Chat is not loading with error
Uncaught TypeError: Super constructor null of anonymous class is not a constructor
- A bug in webpack@>=5.84.1 is causing the issue. Please update to
webpack@>=5.90.0
Please make sure you're using the right version.
I did an override in my package.json to webpack 5.90.0 and still the same runtime console error.
Can't assist without further details on webpack configuration and used plugins versions.
@shah-vtx could you share your webpack configuration and exact versions of webopack and plugins used?
Is it an issue related to Adaptive Cards?
No
Is this an accessibility issue?
No
What version of Web Chat are you using?
Latest production
Which distribution are you using Web Chat from?
NPM
Which hosting environment does this issue primarily affect?
Web apps
Which browsers and platforms do the issue happened?
Others or unrelated
Which area does this issue affect?
Others or unrelated
Which theme pack does this issue affect?
I did not test it on other theme packs
What is the public URL for the website?
No response
Please describe the bug
I'm using a TS project with webpack. It is using commonjs. 4.16.0 works perfectly fine but as soon as I switch to the latest 4.17.0, I get runtime errors in the console in the browser because it is trying to use .mjs files. I also saw this PR and thought it would fix it so I tried the latest main version: 4.17.1-main.20240708.c9247bf.
Do you see any errors in console log?
How to reproduce the issue?
As as you load it in the browser.
What do you expect?
For the page to load and crash to not occur.
What actually happened?
Crashes with console error
Do you have any screenshots or recordings to repro the issue?
N/A
Adaptive Card JSON
No response
Additional context
No response