Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Antwar Interactive ID Resolving Bug #134

@skipjack

Description

@skipjack

Importing a component directly from an npm package, and using it as an interactive component with an ID of the same path throws build errors. For example:

import VoteApp from 'webpack.vote'

// ...
<Interactive
     id="webpack.vote" // or "webpack.vote/dist/vote.bundle.js"
     component={ VoteApp } />

I did find a workaround by specifying the full relative path:

id="./node_modules/webpack.vote"

Admittedly, this probably won't happen too often so if it's a complex or hacky fix maybe a better approach is just to document the workaround.

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