The electric bass was invented in the 1930s (Audiovox Model 736, 1936) and popularized by Fender's Precision Bass (1951). Bach, Mozart, Beethoven, and all classical composers lived before its existence.
If you mean notable composers who wrote for or played electric bass in modern genres, look to bassist-composers in jazz, fusion, and contemporary music:
These are bassist-composers in modern genres—not classical composers in the historical sense. The electric bass simply didn't exist during the common practice period.