Our state of the art Gantt chart


Post by nevyn »

Dear
I have already download the Gantt(trial),and according to the API, use "npm install --save ../../../../build"to import Gantt,then import to my project,like this:''import { Gantt } from 'bryntum-gantt'.
but...error,I have no idea...Pls help
Attachments
bug2.png
bug2.png (37.62 KiB) Viewed 2014 times
bug1.png
bug1.png (15.73 KiB) Viewed 2014 times

Post by saki »

Where these errors come from? npm i or npm start? In any case, the path to Gantt/build directory must be correct in you project's package.json.

Post by nevyn »

run "npm run watch" ...
Package.json and gantt folder Pls check attchments
Attachments
package.png
package.png (31.78 KiB) Viewed 2009 times
bug22.png
bug22.png (17.02 KiB) Viewed 2009 times
bug11.png
bug11.png (9.88 KiB) Viewed 2009 times

Post by saki »

It seems like you have copied build directory from the Gantt trial distribution and that is the correct action. So the problem comes from elsewhere.

Could you please post your complete code (without node_modules)? We would take a look and let you know the results.

Post by nevyn »

Sorry,I can't give you complete code,I don't know if the order of my installation is correct,
Pls check:
1.run: npm install --save ./public/pluglins/BryntumGantt
2.import { Gantt } from 'bryntum-gantt'
3.run: npm run watch ==>error
I can only give you these attachments(with Error)
Attachments
error3.png
error3.png (65.51 KiB) Viewed 2007 times
error2.png
error2.png (82.51 KiB) Viewed 2007 times
error1.png
error1.png (72.92 KiB) Viewed 2007 times

Post by saki »

You correctly install and import Gantt so we must look elsewhere. There are 2 possible areas that come to my mind:
  1. do you have scss support installed? npm i node-sass?
  2. the trial gantt is uglified, therefore that cryptic text in error1.png. If webpack (or vue cli) attempts to transpile it then it may fail. Try to configure it to not transpile gantt code.
If you cannot give us the code of the application, can you at-least prepare a minimal app that would demonstrate the problem? It is virtually impossible to debug the code that we do not have.

Post by saki »

Try the following minimal Vue app if it works for you. You will have to install Gantt according to your path, or change path in package.json
Attachments
vue-minimal.zip
(11.63 KiB) Downloaded 146 times

Post by nevyn »

Dear~
Import Bryntum Gantt need install node-sass? and sass-loader?

Post by mats »

@nevyn: Your trial has expired, have you obtained a licensed version?

Post by nevyn »

no..because Gantt trial doesn't run in my project...
Pls help ,Import Bryntum Gantt need install node-sass? and sass-loader?

Post Reply