Build error in ionic pro- chart.js module not found


#1

hi

I pushed my code to ionic pro, and I got this error during build

Error: ./node_modules/chart.js/src/core/core.helpers.js Module not found: Error: Can't resolve 'chartjs-color' in '/usr/src/app/node_modules/chart.js/src/core' resolve 'chartjs-color' in '/usr/src/app/node_modules/chart.js/src/core' Parsed request is a module using description file: /usr/src/app/node_modules/chart.js/package.json (relative path: ./src/core) Field 'browser' doesn't contain a valid alias configuration after using description file: /usr/src/app/node_modules/chart.js/package.json (relative path: ./src/core) resolve as module looking for modules in /usr/src/app/node_modules using description file: /usr/src/app/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration after using description file: /usr/src/app/package.json (relative path: ./node_modules) using description file: /usr/src/app/package.json (relative path: ./node_modules/chartjs-color) no extension Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/chartjs-color doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/chartjs-color.ts doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/chartjs-color.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /usr/src/app/node_modules/chartjs-color.json doesn't exist as directory /usr/src/app/node_modules/chartjs-color

When I run ionic serve on my local computer everything worked fine. Can someone help me with this error

my ionic info are:

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

local packages:

    @ionic/app-scripts : 3.1.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v8.2.1
    npm  : 5.4.2 
    OS   : Linux 4.4

Misc:

    backend : pro

regards