question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bootstrap 5.2 - Any JS dependency changes?

See original GitHub issue

Discussed in https://github.com/twbs/bootstrap/discussions/36881

<div type='discussions-op-text'>

Originally posted by chrisreddington August 2, 2022 Hi Folks,

I wondered if anyone had any issues upgrading from Bootstrap 5.2 to 5.2? I’m aware that there were some changes on the sass side (so have imported the new maps partial), but seem to also be having issues with JavaScript.

I can’t see anything called out in the Bootstrap 5.2 migration guide around JavaScript. I had a site with JavaScript that was working in 5.1, and now no longer working in 5.2. I am now seeing Uncaught TypeError: Class extends value undefined is not a constructor or null in my console, which hints to me that there’s a dependency issue.

The theme itself for my site is hosted in my hugo creator repository, where you’ll notice the example/demo site has the exact same issue (which could imply the issue on my end, and how i’m referencing the files - but haven’t quite got that stage of identifying the issue yet!)

I’m referencing the individual files from node_modules, via the js/dist folder. The order that I’m referencing is -

“dom/data.js”, “dom/event-handler.js”, “dom/manipulator.js”, “dom/selector-engine.js”, “popper.js”, “base-component.js”, “carousel.js”, “collapse.js”, “dropdown.js”

Is there anything that I may need to consider going into 5.2 about the ordering of references for the individual components, or any dependency conflicts with other packages that may have been introduced?

Thanks!</div>

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
chrisreddingtoncommented, Aug 6, 2022

For anyone else encountering issues, can confirm that switching to using dist/js/boostrap.bundle.js worked again for me (thanks again @GeoSot).

Less than ideal, as my deploy now contain JS code for components that I am not using, but solves the immediate UI issues.

0reactions
GeoSotcommented, Dec 28, 2022

In case we want to use the independent J’s built files, I think we need some small build changes ( I need to check it as I am not able to recall now )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap 5.2 - Any JS dependency changes? #36881 - GitHub
I am now seeing Uncaught TypeError: Class extends value undefined is not a constructor or null in my console, which hints to me...
Read more >
JavaScript · Bootstrap v5.2
Both Bootstrap and the framework may attempt to mutate the same DOM element, resulting in bugs like dropdowns that are stuck in the...
Read more >
Migrating to v5 - Bootstrap
Track and review changes to the Bootstrap source files, documentation, and components to help you migrate from v4 to v5.
Read more >
JavaScript · Bootstrap v5.0
Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the...
Read more >
Bootstrap 5.2.0
Bootstrap v5.2.0 is finally stable! We've ironed out more bugs, improved more documentation, written new guides and built out new functional ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found