Skip to content

Javascript errors after running rails importmap:install on fresh Rails app. #28

@tubsandcans

Description

@tubsandcans

After adding the importmap-rails gem to a freshly generated Rails app's Gemfile and running rails importmap:install, I'm seeing the following javascript console error messages:

An import map is added after module script load was triggered.

Uncaught TypeError: Failed to resolve module specifier "application". Relative references must start with either "/", "./", or "../".

I have tested this with fresh Rails 6.1 and 7.0a apps in Chrome and Safari.

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