Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
antoniomnds opened this issue Sep 17, 2024 · 0 comments
Open

Comments

@antoniomnds
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@antoniomnds and others