I found an old config in my package json which was excluding filesystem from expo since I wasn't using expo except for 2 packages. removing it resolved this issue.