[ 
https://issues.apache.org/jira/browse/AIRFLOW-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16809932#comment-16809932
 ] 

ASF subversion and git services commented on AIRFLOW-3887:
----------------------------------------------------------

Commit fe9df7301575f54607715dee0b170a1daf5e5dcf in airflow's branch 
refs/heads/v1-10-stable from Andrew Stahlman
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=fe9df73 ]

[AIRFLOW-3887] Downgrade dagre-d3 to 0.4.18 (#4713)

dagre-d3 v0.6.3 has a bug that causes this Javascript error when loading
the Graph View:

    TypeError: previousPaths.merge is not a function

The bug fix [1] has been merged to master, but hasn't been released to
npm yet. This change temporarily downgrades our version of dagre-d3
until dagre-d3 v0.6.4 is released [2]

I also fixed a bug I encountered in the `compile_assets.sh` where the
script would fail if the directory `airflow/www/static/dist/` exists but
is empty.

[1] https://github.com/dagrejs/dagre-d3/pull/350
[2] 
https://github.com/dagrejs/dagre-d3/blob/5450627790ff42012ef50cef6b0e220199ae4fbe/package.json#L3


> Dagre D3 Version 0.6.3 raises merge is not a function error
> -----------------------------------------------------------
>
>                 Key: AIRFLOW-3887
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3887
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: 1.10.2
>            Reporter: Felix Uellendall
>            Assignee: Andrew Stahlman
>            Priority: Major
>             Fix For: 1.10.3
>
>         Attachments: Screen Shot 2019-02-06 at 16.13.05.png
>
>
> The latest version of Dagre D3 that we already use (0.6.3) contains a bug 
> that causes the Graph View to stop working for D3 Version 3 that we are using.
> {noformat}
> TypeError: previousPaths.merge is not a function
> {noformat}
>  !Screen Shot 2019-02-06 at 16.13.05.png! 
> To temporary fix this you can pin your Dagre D3 version to 0.4.18
> The actual fix should be to set Dagre D3 to the next release that contains 
> this bugfix. 
> See: https://github.com/dagrejs/dagre-d3/pull/350



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to