reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Wrapping React component from local package works for github as source but not for local directory

Open h4gen opened this issue 11 months ago β€’ 1 comments

Describe the bug

class GithubComponent(rx.Component):
    library = (
        "@masenf/hello-react@github:masenf/hello-react"
    )
    tag = "Counter"


def github_component_example():
    return GithubComponent.create()

works. However, cloning or downloading masenf/hello-react and changing the wrapper to:

class GithubComponent(rx.Component):
    library = (
        "@masenf/hello-react@../hello-react-main"
    )
    tag = "Counter"


def github_component_example():
    return GithubComponent.create()

will result in the the error

Module not found: Can't resolve 'lodash'

To Reproduce See above.

  • Code/Link to Repo:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Specifics (please complete the following information):

  • Python Version: 3.11
  • Reflex Version: 0.6.5
  • OS: MacOs
  • Browser (Optional):

Additional context Add any other context about the problem here.

h4gen avatar Nov 21 '24 18:11 h4gen