mirror of https://github.com/status-im/metro.git
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:
parent
c2c99c4c1b
commit
b77f177f92
|
@ -301,7 +301,8 @@ class ModuleResolver<TModule: Moduleish, TPackage: Packageish> {
|
||||||
`To resolve try the following:\n` +
|
`To resolve try the following:\n` +
|
||||||
` 1. Clear watchman watches: \`watchman watch-del-all\`.\n` +
|
` 1. Clear watchman watches: \`watchman watch-del-all\`.\n` +
|
||||||
` 2. Delete the \`node_modules\` folder: \`rm -rf node_modules && npm install\`.\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-*`.',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue