if you create a symlink pointing to .. it silently freezes the packager up to out of memory
See original GitHub issueln -s .. foo
react-native bundle --entry-file index.ios.js --bundle-output out
# aka a Release build
will infinitely freeze the packager without any error or any log. After like 40minutes, it ends with a out of memory. not very helpful DX 😦
[10:27:33 PM] <START> Building Dependency Graph
[10:27:33 PM] <START> Crawling File System
[10:27:34 PM] <START> find dependencies
^ Stopped here
We had hard time figuring out the problem (and obviously we accidentally created that symlink) so YEAH it’s not very critical. but it’s a terrible experience when you fall into it and packager don’t want to build JUST in Release mode… so it would be great to fix it in some way, here is thoughts:
- packager to ignore symlinks (if it doesn’t support it, drop it)
- prevent file exploration loop (going back again back in one of the explored folder should be forbidden)
- log a more useful warning when you traverse symlink… (at least in DEBUG mode? even enabling the export DEBUG= thing didn’t even helped!)
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Link Shell Extension (LSE)
When creating Clones, LSE forks its helper LSEUacHelper.exe to forwards this operation to it, if the folder tree contains symbolic links, because the...
Read more >Command-line API | Node.js v19.3.0 Documentation
js core test suite checks that a few fairly complex applications can be snapshotted. Support for more modules are being added. If any...
Read more >3 Common Tasks — The Yocto Project ® 4.1.999 documentation
3 Common Tasks . This chapter describes fundamental procedures such as creating layers, adding new software packages, extending or customizing images, ...
Read more >Git Bash shell fails to create symbolic links - Stack Overflow
It is possible, albeit extremely awkward, to create a symbolic link in MSysGit. First, we need to make sure we are on Windows....
Read more >Writing R Extensions - The Comprehensive R Archive Network
If a package has a specified encoding, you should run R CMD build etc in a ... As pointed out in several places...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll try to take a deeper look into it when I have a time
@charpeni tells me to close this issue. If you think it should still be opened let us know why.