RainMaker\AppInsights.cpp.o Error 1

Hello all, I’m struggling for days now… (beginner with platfromIO.
This is just an example sketch from rainmaker, works perfect in Arduino IDE, but in PlatfomIO I get this error: [.pio\build\esp32dev\lib478\RainMaker\AppInsights.cpp.o] Error 1

Terminal:

Verbose mode can be enabled via `-v, --verbose` option

PLATFORM: Espressif 32 (6.2.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 3.20008.0 (2.0.8)
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> 
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESP RainMaker @ 2.0.0
|-- WiFi @ 2.0.0
|-- WiFiProv @ 2.0.0
|   |-- WiFi @ 2.0.0
|   |-- SimpleBLE @ 2.0.0
Building in release mode
Compiling .pio\build\esp32dev\src\main.cpp.o
Building .pio\build\esp32dev\bootloader.bin
Generating partitions .pio\build\esp32dev\partitions.bin
esptool.py v4.5.1
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Compiling .pio\build\esp32dev\lib478\RainMaker\AppInsights.cpp.o
Compiling .pio\build\esp32dev\lib478\RainMaker\RMaker.cpp.o
Compiling .pio\build\esp32dev\lib478\RainMaker\RMakerDevice.cpp.o
C:/Users/Cees/.platformio/packages/framework-arduinoespressif32/libraries/RainMaker/src/AppInsights.cpp:12:10: fatal error: Insights.h: No such file or directory

******************************************************************
* Looking for Insights.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Insights.h"
* Web  > https://registry.platformio.org/search?q=header:Insights.h
*
******************************************************************

 #include "Insights.h"
          ^~~~~~~~~~~~
compilation terminated.

PlatfromIO.ini:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino

Main.cpp:

#include <Arduino.h>

//This example demonstrates the ESP RainMaker with a custom device

#include "RMaker.h"

#include "WiFi.h"

#include "WiFiProv.h"

#define DEFAULT_POWER_MODE true

#define DEFAULT_DIMMER_LEVEL 127

//**********PWM SETUP *************

#define PWM1_Ch 0

#define PWM1_Res 8

#define PWM1_Freq 1000

int PWM1_DutyCycle = DEFAULT_DIMMER_LEVEL;

//**********----------*************

bool dimmer_state = true;

const char *service_name = "PROV_1234";

const char *pop = "abcd1234";

//GPIO for push button

Any help to point me in the right direction is welcome.

PlatformIO fails to detect the dependency of the RainMaker library to the Insights library.

Add

lib_ldf_mode = deep

to the platformio.ini (docs).

Thank you so much sir, this did the trick!!
I was already give-up rainmaker in combination with PlatformIO
now some other problems but I think I can sort it out (upload scheme, memory error…)
But I remember something with File: huge… I find it.
Again, thank you.