Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Import bootstrap.js #105

Open
eugenregehr opened this issue Sep 17, 2021 · 2 comments
Open

Import bootstrap.js #105

eugenregehr opened this issue Sep 17, 2021 · 2 comments

Comments

@eugenregehr
Copy link

Someone have an idea how to import bootstrap 5 in app.js?
i tried to import 'bootstrap' or' bootstrap.bundle', but i get this error:

`ERROR in ./node_modules/bootstrap/dist/js/bootstrap.esm.js
Module build failed: SyntaxError: Unexpected token (1243:15)

1241 |
1242 | _getConfig(config) {

1243 | config = { ...Default$a,
| ^
1244 | ...Manipulator.getDataAttributes(this._element),
1245 | ...(typeof config === 'object' ? config : {})
1246 | };`

i think there is a problem with spread operator, do i missed to setup something in webpack?

@davodsaraei
Copy link

I have same isuue

@msacchetti
Copy link

I would assume you would need to adjust webpack and/or build steps as this repo probably only supports bootstrap 4 since bootstrap 5 is so new and uses more modern js. I will try to debug this if I have some spare time.

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

No branches or pull requests

3 participants