Can D3 library be used with the Electron (Atom shell)?

后端 未结 3 526
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 08:24

Electron\'s website says that the applications made with electron can have access to node modules. Can they have access to the D3 library? If so, how can it be set up?

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 09:02

    We solved this in our workteam installing d3 with Npm:

    npm install d3 --save

    and in index.html we put this:

    We were getting this issue from nv.d3.js line 18, there is a little function requiring d3 as a node module and in our app we were using it in bower_components, so installing it with npm and requesting in your index directly from node_modules like as I said will probably solve this issue as it did with us.

提交回复
热议问题