Unnecessary compilation error

I think this is something related to libraries. All the libraries are included in the headers. It also compiles well and good in Arduino IDE But Platformio always throws errors in all my projects.
Screenshot (3128)

See Wire.h not found, platformio latest version.

The library dependency finder doesn’t recognize the Wire dependency if you don’t #include <Wire.h> in your main file or add it to lib_deps.

1 Like