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

Import bootstrap.js  #105

@eugenregehr

Description

@eugenregehr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions