Hmm... that's odd. This may sound silly but you don't have
`Elm.SeatSaver(elmDiv,
{})` (no embed on the end) anywhere do you? Also make sure you recompile it
(I assume you're using brunch or something like that)

On Thu, Jun 9, 2016 at 7:33 PM liumengjiang <[email protected]> wrote:

> Ihave already found the change, but in a phoenixframework project, if I
> changed the Elm.embed to Elm.SeatSaver.embed(elmDiv, {}) in app.js, the
> error in console will be "Uncaught TypeError: Elm.SeatSaver is not a
> function", but I can invoke the Elm.SeatSaver.embed(elmDIv, {}).
>
> 在 2016年6月10日星期五 UTC+8上午12:00:27,Gage Peterson写道:
>
>> This changed in 0.17 I think:
>> https://github.com/elm-lang/elm-platform/blob/master/upgrade-docs/0.17.md#javascript-interop
>>
>> On Thursday, June 9, 2016 at 8:09:37 AM UTC-6, liumengjiang wrote:
>>>
>>> I followed the blog of Phoenix with Elm - Part2, there is no any error
>>> except nothing displayed in the page. and in the chrome console, there is a
>>> error of "Uncaught TypeError: Elm.embed is not a function." but in the
>>> console, Elm.SeatSaver.embed(document.getElementById('elm-main'), {}) is
>>> OK.an in the and in web/static/js/app.js, alert(Elm.SeatSaver) show
>>> 'undefined'. Any one can explain the issue?
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Elm Discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elm-discuss/yLCi8oJmBOQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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