Skip to content

TypeError: Module name, 'popper' does not resolve to a valid URL #289

Description

@antoniomnds

Having followed the setup instructions in the README, this error message appears in the browser console when loading each page: TypeError: Module name, 'popper' does not resolve to a valid URL.
Didn't found a similar issue in the repo.

Current setup is:
Rails 7.2.1
gem bootstrap 5.3.3

In the import map I've used:
pin "@popperjs/core", to: "popper.js", preload: true

I've seen in a gist another configuration that seems to solve the issue:
pin "popper", to: 'popper.js', preload: true

If this is reproducible in other envs, perhaps the README should be updated to include this configuration.

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