❔ Import github library (maybe also via npm?)
Can anyone tell me how import github library files correctly using the Frappe Gantt example? I use Visual Studio 2022 Community.
I downloaded the .zip from Github and put the files from
\gantt-master\gantt-master\dist
into the folder frappe-gantt
I created in VS Solution-Explorer via context menu.
But when I want to link the files, VS shows me node_modules
and the subfolders are empty.
I also tried to install it via npm install frappe-gantt
, but npm only shows up to date in 100ms
.6 Replies
Edit1: This screenshot was missing
Well, it's not inside of
node_modules
Ok I have deleted everything node/npm related.
Added new NPM-Config file
package.json
in project root.
Then I opened the terminal under wwwroot and ran npm install frappe-gantt
:
How do I link the resource now?
Is it correct that the folders are not directly assigned to the project (hidden)?It does seem hidden, yes
Tbh I'd just get the files from
dist
and place them in wwwroot/lib
Mark them as "copy always" or "copy if newer"
Then reference them, even if IntelliSense doesn't show them being there
VS kinda sucks for web stuff so wouldn't surprise me if it just didn't see the files until restart or somethingOk thank you, I'll give it a try!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.