PlatformIO - Wemos D1 Mini doesn't work anymore

Hello!
First off, I work with VS Code and PlatformIO.

To quickly try something out, I connected a small ESP8266 (Wemos D1 Mini) and tested the program. Compile, upload, try it out. It worked.

This is the “platformio.ini” file:

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
monitor_speed = 115200

One day later. The following error appears when loading the project:

Resolving d1_mini dependencies…
MissingPackageManifestError: Could not find one of ‘package.json’ manifest files in the package

I became suspicious, and when I tried to compile it (Ctrl + Alt + B), I got another error message:

MissingPackageManifestError: Could not find one of ‘package.json’ manifest files in the package

This is now happening on all 8266 boards :frowning:. What happened overnight?

Thanks in advance for any solutions or answers.

Your platformio.ini is fine, something seems to have corrupted your local platform or packages installation.

If you don’t have any special modifications, I’d just recommend to delete

  • C:\Users\<user>\.platformio\packages
  • C:\Users\<user>\.platformio\platforms
  • C:\Users\<user>\.platformio\.cache

and restart VSCode.

That’s it!
How did you come up with that?

Everything is fine. It’s working again.

Thanks alot

1 Like