Skip to content
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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants