[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
h4gen opened this issue Nov 21, 2024 · 1 comment

Comments

@h4gen
Copy link
h4gen commented Nov 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant