reflex-dev / reflex

🕸️ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
20.42k stars 1.18k forks source link

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

Open h4gen opened 3 days ago

h4gen commented 3 days ago

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.

Screenshots image

Specifics (please complete the following information):

Additional context Add any other context about the problem here.

linear[bot] commented 3 days ago

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