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

How to configure metro to hot reload when source in node_modules/mypackage change? #907

Open
kopax-polyconseil opened this issue Apr 22, 2021 · 0 comments

Comments

@kopax-polyconseil
Copy link

In a react native application, I am using the following metro.config.js to support symlink: react-native-community/cli#1238 (comment)

Symlink works fine and I can see when I update the source Refreshing being displayed on my screen.

However, the source is still the old one, I must restart metro process and the application in order to really see the changes.

How can I configure metro to hot reload change from within my linked modules?

This is what I have in watchFolders metro option:

['/home/dka/.config/yarn/link/@pass-culture/id-check']

This is what I have when I run watchman watch-list:

watchman watch-list
{
    "version": "20210124.162314.0",
    "roots": [
        "/home/dka/workspace/github.com/pass-culture/id-check-front/packages/id-check",
        "/home/dka/workspace/github.com/pass-culture/pass-culture-app-native"
    ]
}

Thanks for helping

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