In your first example you are using the js module which is intended for use when ESP8226 is purely used as Wifi Adapter - i.e Pico + ESP8266
Your second example is correct, and you can generally ignore module not found warnings.
The acid test is can you do anything with the wifi object - can you get status with wifi.getStatus()? If you can, your module is loaded and available.
wifi.getStatus()
@Ollie started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
In your first example you are using the js module which is intended for use when ESP8226 is purely used as Wifi Adapter - i.e Pico + ESP8266
Your second example is correct, and you can generally ignore module not found warnings.
The acid test is can you do anything with the wifi object - can you get status with
wifi.getStatus()
? If you can, your module is loaded and available.