Popper-core: Usage with angular4 and bootstrap4-beta

Created on 12 Aug 2017  路  3Comments  路  Source: popperjs/popper-core

Im try use in angular-cl.json

{
  ...
  "apps": [
    {
      "scripts": [
        "../node_modules/jquery/dist/jquery.js",
        "../node_modules/popper.js/dist/popper.js",
        "../node_modules/bootstrap/dist/js/bootstrap.js"
      ],
}


but have error in browser

Uncaught SyntaxError: Unexpected token export
    at eval (<anonymous>)
    at webpackJsonp.../../../../script-loader/addScript.js.module.exports (scripts.bundle.js:35)
    at Object.../../../../script-loader/index.js!../../../../popper.js/dist/popper.js (scripts.bundle.js:58)
    at __webpack_require__ (inline.bundle.js:55)
    at Object.2 (scripts.bundle.js:66)
    at __webpack_require__ (inline.bundle.js:55)
    at webpackJsonpCallback (inline.bundle.js:26)
    at scripts.bundle.js:1

image

Most helpful comment

You shoud use the umd build, in /dist/umd/popper.js

All 3 comments

You shoud use the umd build, in /dist/umd/popper.js

thanks!

Thank you!

Was this page helpful?
0 / 5 - 0 ratings