rafcontreras / Ubersicht-World-Clock-Widget

ubersitch-world-clock.widget
2 stars 2 forks source link

Can't walk dependency graph error #8

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi, Thanks for this. I tried installing today after recently downloading Ubersicht and immediately received this error.

I would like to install the calendar you show on your desktop image. Is that another widget you've created?

Can't walk dependency graph: Cannot find module './src/suncalc' from '/Users/john/Library/Application Support/Übersicht/widgets/ubersitch-world-clock.widget/index.jsx'
    required by /Users/john/Library/Application Support/Übersicht/widgets/ubersitch-world-clock.widget/index.jsx

in /Users/john/Library/Application Support/Übersicht/widgets/ubersitch-world-clock.widget/index.jsx:
Screen Shot 2021-02-12 at 11 45 02 AM
jhendry-whispir commented 3 years ago

I found changing the import for suncalc in index.js to:

import SunCalc from "./src/suncalc/suncalc.js";

helped.

zakirsajib commented 2 years ago

i am having same issue.

ASKHOPE commented 1 year ago

This Worked Thank You. Added this line below the previous one is vscode.

danieltaylor commented 1 year ago

You can also just rename the suncalc.js file as index.js and that will fix the issue as well.

See PR #9