I see several successful implementations of the weather API with SDK 4.3. However, all my attempts to use the API result in: "TypeError: Attempted to assign to readonly property."
When I used the CLI instead I get "[error][app] weather is imported by app/index.js, but could not be resolved".
The code I'm using is very barebones:
weather
.getWeatherData()
.then((data) => {
console.log("weather ok");
})
.catch((ex) => {
console.error(ex);
});