I want to move my index.tsx file to the src dir, instead of root directory. I tried to set project root as cli param:
"start": "node node_modules/react-native/local-cli/cli.js start --projectRoot src"
And when bundle runs I see:
error: bundling failed: Error: Unable to resolve module
@babel/runtime/helpers/interopRequireDefaultfrom/Users/alexm/Documents/Projects/Stuzo/Investigations/PayomaticMobile/src/index.tsx: Module@babel/runtime/helpers/interopRequireDefaultdoes not exist in the Haste module map
./src folderCode should bundle correctly
[skip envinfo]
I think this info is enough
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.59.4 => 0.59.4
npmGlobalPackages:
react-native-cli: 2.0.1
Can you run react-native info and edit your issue to include these results under the Environment section?
[skip envinfo] alongside an explanation in your Environment: section.
This is a regression after a packager fix in 0.59.3.
You can work around it by using watchFolders option in metro.config.js instead
why is this issue closed?
a workaround is not a solution, it is still an issue.
Most helpful comment
why is this issue closed?
a workaround is not a solution, it is still an issue.