0

I've recently deployed my website to Heroku. It's simple static website using Bootstrap, jQuery and Popper. But when I deployed it to Heroku it shows me an error:

Uncaught TypeError: Bootstrap tooltips require Popper.js

Npm install directly on Heroku is not working. Adding CDN is not working. I can see that popper is installing successfully, but then nothing changes, like it was before.

package.json:

{
  "name": "...",
  "version": "1.0.0",
  "description": "...",
  "main": "index.html",
  "scripts": {
    "start": "harp server --port $PORT"
  },
  "author": "...",
  "dependencies": {
    "harp": "*",
    "bootstrap": "^4.1.3",
    "jquery": "^3.3.1",
    "popper": "^1.0.1"
  }
}
adrian95999
  • 117
  • 1
  • 3
  • 17
  • Have you configured webpack properly? [This post](https://github.com/twbs/bootstrap/issues/23381#issuecomment-322179061) on the repository seems to be useful to many others. Maybe you can try. – HalilC Dec 16 '18 at 13:31
  • Thank you for your reply and suggestion! Problem dissapeared, I don't know really why but it did – adrian95999 Dec 16 '18 at 16:03

1 Answers1

0

So, I've made changes to my main index.html: I've deleted popper.js cdn, installed popper.js once again via npm, disable auto deploy at heroku, pushed my changes to repo, build manually once again at Heroku and now problem is no longer visible. I really don't know the reason, but now everything is fine.

adrian95999
  • 117
  • 1
  • 3
  • 17