sweetalert2: bower error - export default sweetAlert

After updating to the latest version of sweetalert2 via bower, chrome gives me the following error: Uncaught SyntaxError: Unexpected token export at the line export default sweetAlert. I have not received this error with previous versions.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Thank you @limonte! Rails Assets is including the correct file now.

According to this github issue it’s possible to manually choose the file. The way this projects bower.json is setup (as per the official bower docs) it references the source file which is what’s causing the issue. You actually want a specific build.