How do I disable replit guessing packages

Question:
So replit had a guessImports option in the .nix file. They now removed that.
I want to install py-cord, but when I do import discord, but it does poetry add discord
WHICH I DO NOT WANT. How do I prevent Replit from installing packages I don’t want?

1 Like

You could probably add that line to the replit.nix file. Maybe it would still work. :person_shrugging: I know they took some stuff out of the .replit file and yet you can manually add it and it will still work.

The configuration for disabling that has changed:

Top level in .replit (not replit.nix) file:

disableGuessImports = true
2 Likes

I meant the .replit, but it works!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.