reflex
reflex copied to clipboard
Wrapping React component from local package works for github as source but not for local directory
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
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.