Seems like the Msg type on your init, update and view functions doesn't 
match with the subscriptions one. Add the Instagram.Msg to the Msg type?

On Tuesday, May 17, 2016 at 1:03:49 PM UTC+2, Zachary Kessin wrote:
>
> The final part of moving my code base over to 0.17...
>
> I have a port/subscription which is used to authenticate from an OAuth btn 
> and it is getting the wrong type.
>
> In main i have this   *subscriptions = Instagram.subscriptions*
>    
> and in the Instagram module I have this code
>
> *port instagramAuth  : ( Maybe String -> msg) -> Sub msg*
>
> *subscriptions model =*
> *  instagramAuth SetInstagramOAuth*
>
> And I am getting this error
>
>
> 197|        App.programWithFlags
> 198|>    {
> 199|>      init          = init
> 200|>    , update        = update
> 201|>    , view          = view
> 202|>    , subscriptions = Instagram.subscriptions
> 203|>    }
>
> Function `programWithFlags` is expecting the argument to be:
>
>     { ..., subscriptions : Model -> Sub Msg }
>
> But it is:
>
>     { ..., subscriptions : Model -> Sub Instagram.Msg }
>
> Detected errors in 1 module.   
>
> I think I need to do some kind of Map but I am not 100% sure what it 
> should look like and everything I have tried has failed
> Zach
> -- 
> Zach Kessin
> Twitter: @zkessin <https://twitter.com/zkessin>
> Skype: zachkessin
> ᐧ
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to