TypeError: Module name, 'popper' does not resolve to a valid URL
Nobody has claimed this yet.
- Dominant language
- SCSS
- Stars
- 2k
- Forks
- 437
- Avg merge
- 1h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README setup instructions and the reported Rails 7.2.1 import-map configuration for Bootstrap 5.3.3. Reproduce the browser-console error, compare the two Popper pin forms, and update the README only if the alternate configuration consistently resolves it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- devtools, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100