-
Notifications
You must be signed in to change notification settings - Fork 336
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
WebPack 5.83.1 TypeError #3697
Comments
Transferring this issue to the govuk-frontend repo |
Hi @abhi-markan. thanks for raising this. Could you please provide code for your implementation of the character count component? |
@owenatgov I've set up a It's branched from v4.6.0 but can still be run with: npm run dev --workspace govuk-frontend-webpack-boilerplate I've swapped our basic "Button" example for "Character count" with the HTML from here: Would be good to check the HTML the JS crashes on, with it likely being <div id="with-hint-info" class="govuk-hint govuk-character-count__message">
You can enter up to 200 characters
</div> You can see the HTML snippet I've used in ./docs/examples/webpack/src/index.html |
I'm going to close this one since we'll soon log errors for missing elements in GOV.UK Frontend v5.0.0 Seems like Character Count changes in #4261 would catch the missing element before we call
You'd see our friendly error instead |
What
Upon webpack compilation for webpack
5.80.1
or above a type error pertaining to character count component is being thrown at console thus causing tests to fail.Why
Webpack compilation
Anything else
The text was updated successfully, but these errors were encountered: