metro-bundler: add additional tip for resolution errors

Summary: Rebase of a PR, closes https://github.com/facebook/metro-bundler/pull/39/files

Reviewed By: cpojer

Differential Revision: D6372967

fbshipit-source-id: 84c77b7e445269638616abde56b728ea6d3e475c
This commit is contained in:
Jean Lauliac 2017-11-21 02:11:49 -08:00 committed by Facebook Github Bot
parent c2c99c4c1b
commit b77f177f92
1 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,8 @@ class ModuleResolver<TModule: Moduleish, TPackage: Packageish> {
`To resolve try the following:\n` +
` 1. Clear watchman watches: \`watchman watch-del-all\`.\n` +
` 2. Delete the \`node_modules\` folder: \`rm -rf node_modules && npm install\`.\n` +
' 3. Reset Metro Bundler cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`.',
' 3. Reset Metro Bundler cache: `rm -rf $TMPDIR/react-*` or `npm start -- --reset-cache`.' +
' 4. Remove haste cache: `rm -rf $TMPDIR/haste-map-react-native-packager-*`.',
);
}