Issue in alpha.1 NPM packages

UI Components for React
Post Reply
chillfire
Posts: 1
Joined: 10 Jul 2018, 11:00

10 Jul 2018, 11:25

Hi I am using "primereact": "^2.0.0-alpha.1" and have found an error in columngroup.js

Code: Select all

'use strict';

module.exports = require('./components/columngroup/ColumGroup');
Should it be:

Code: Select all

'use strict';

module.exports = require('./components/column/Column');
And

Code: Select all

'use strict';

module.exports = require('./components/column/ColumnGroup');
Should this be:

Code: Select all

'use strict';

module.exports = require('./components/columngroup/ColumnGroup');

Also in primereact/components/chart/chart.js - Module not found: Can't resolve 'chart.js/src/chart.js'

Code: Select all

var _chart = require('chart.js/src/chart.js');
In my node_modules it looks like its 'chartjs/chart.js' ?

Also in the chart.js file above I am getting an error

Code: Select all

 key: 'componentWillUnmount',
        value: function componentWillUnmount() {
            if (this.chart) {
                //this.chart.destroy();
                this.chart = null;
            }
        }
That says that destroy isnt a function?


If I make all of the above changes I can compile and run my app but no chart will load, even when using the example from the line chart page?
Any ideas?

cheers
craig

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Jul 2018, 13:39

ColumnGroup issue is fixed in beta.1 but I can't replicate the Chart issue, do you use Chart component, do you have chart.js installed as a package?

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests