Repl fails to load packages after migration to nix

I have a basic replit for a discord bot which i use occasionally, the problem is even though earlier without nix it used to work just fine, now after the auto-migration it doesnt have any packages like request, or discord and i cant get it to run. Trying to manually install the packages always results in package operation failed.