Closed stanislavgeorgiev closed 3 years ago
closing as stale/outdated
@carbon/colors
should be installed automatically by your package manager when installing @carbon/charts
Getting this error while performing ng build --prod not able to understand the soln
ERROR in ./node_modules/@carbon/charts/services/essentials/dom-utils.js Module not found: Error: Can't resolve 'dom-to-image' in '/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/essentials' resolve 'dom-to-image' in '/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/essentials' Parsed request is a module using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/package.json (relative path: ./services/essentials) Field 'browser' doesn't contain a valid alias configuration resolve as module looking for modules in /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/ using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/package.json (relative path: ./dom-to-image) no extension Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.js doesn't exist as directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image doesn't exist /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/essentials/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/mainBranchCode/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/node_modules doesn't exist or is not a directory /Users/sanchitaraut/node_modules doesn't exist or is not a directory /Users/node_modules doesn't exist or is not a directory /node_modules doesn't exist or is not a directory looking for modules in /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration looking for modules in /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/package.json (relative path: ./node_modules/dom-to-image) no extension Field 'browser' doesn't contain a valid alias configuration using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/package.json (relative path: ./node_modules/dom-to-image) no extension Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.js doesn't exist as directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image doesn't exist /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.js doesn't exist as directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image doesn't exist [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.ts] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.tsx] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.mjs] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.js] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/essentials/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/node_modules] [/Users/sanchitaraut/Cateina/node_modules] [/Users/sanchitaraut/node_modules] [/Users/node_modules] [/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.ts] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.ts] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.tsx] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.tsx] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.mjs] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.mjs] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.js] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.js] @ ./node_modules/@carbon/charts/services/essentials/dom-utils.js 24:0-38 204:8-18 222:8-18 @ ./node_modules/@carbon/charts/services/index.js @ ./node_modules/@carbon/charts/chart.js @ ./node_modules/@carbon/charts/charts/wordcloud.js @ ./node_modules/@carbon/charts/charts/index.js @ ./node_modules/@carbon/charts/index.js @ ./node_modules/@carbon/charts-angular/fesm2015/carbon-charts-angular.js @ ./src/app/app.module.ngfactory.js @ ./src/main.ts @ multi ./src/main.ts
Getting this error while performing ng build --prod not able to understand the soln
ERROR in ./node_modules/@carbon/charts/services/essentials/dom-utils.js Module not found: Error: Can't resolve 'dom-to-image' in '/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/essentials' resolve 'dom-to-image' in '/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/essentials' Parsed request is a module using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/package.json (relative path: ./services/essentials) Field 'browser' doesn't contain a valid alias configuration resolve as module looking for modules in /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/ using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/package.json (relative path: ./dom-to-image) no extension Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.js doesn't exist as directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image doesn't exist /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/essentials/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/mainBranchCode/node_modules doesn't exist or is not a directory /Users/sanchitaraut/Cateina/node_modules doesn't exist or is not a directory /Users/sanchitaraut/node_modules doesn't exist or is not a directory /Users/node_modules doesn't exist or is not a directory /node_modules doesn't exist or is not a directory looking for modules in /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration looking for modules in /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/package.json (relative path: ./node_modules/dom-to-image) no extension Field 'browser' doesn't contain a valid alias configuration using description file: /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/package.json (relative path: ./node_modules/dom-to-image) no extension Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.ts doesn't exist .tsx Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.tsx doesn't exist .mjs Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.mjs doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.js doesn't exist as directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image doesn't exist /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.js doesn't exist as directory /Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image doesn't exist [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.ts] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.tsx] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.mjs] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/dom-to-image.js] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/essentials/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/services/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/node_modules] [/Users/sanchitaraut/Cateina/node_modules] [/Users/sanchitaraut/node_modules] [/Users/node_modules] [/node_modules] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.ts] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.ts] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.tsx] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.tsx] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.mjs] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.mjs] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/@carbon/charts/node_modules/dom-to-image.js] [/Users/sanchitaraut/Cateina/mainBranchCode/starfish_UI/node_modules/dom-to-image.js] @ ./node_modules/@carbon/charts/services/essentials/dom-utils.js 24:0-38 204:8-18 222:8-18 @ ./node_modules/@carbon/charts/services/index.js @ ./node_modules/@carbon/charts/chart.js @ ./node_modules/@carbon/charts/charts/wordcloud.js @ ./node_modules/@carbon/charts/charts/index.js @ ./node_modules/@carbon/charts/index.js @ ./node_modules/@carbon/charts-angular/fesm2015/carbon-charts-angular.js @ ./src/app/app.module.ngfactory.js @ ./src/main.ts @ multi ./src/main.ts
Installing the latest version should resolve your issue
I am submitting a...
charts version:
0.22.0
Issue description
I updated from 0.16.8 to 0.22.0, I did go through the upgrade instructions but I was always getting compile errors which turned out to be caused by my project not having
@carbon/colors
as a dependency.Steps to produce the issue
Current behavior
Expected behavior
Screenshot or recording