Skip to content

Local file not being pinned/loaded #306

@emerak

Description

@emerak

Hi, newbie here

I am trying to setup a rails app with react, just experimenting atm. After trying to set up a custom component I can't pass the following error

Image

These are my config files

Image

If I understand correctly by pinning the components dir I should be able to see it in the importmaps json, by currently I don't see it

{ "imports": { "react": "https://esm.sh/react@18", "react-dom": "https://esm.sh/react-dom@18", "react/jsx-runtime": "https://esm.sh/react@18/jsx-runtime", "application": "/assets/application-e8fd93c9.js" } }

Am I missing something? do I need to run an extra command for this json file to update?

I am using Rails 8.0.2 and importmaps 2.1.0

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