Using Chart.js with Single Spa #1131
Unanswered
userdarsozbilici
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a vue.js app contains a chart from Chart.js. When I am running only vue app, it works. However, When I'm trying to run inside a single spa root. It gives an error
ERROR
application died in status SKIP_BECAUSE_BROKEN: import_hammerjs.default.Manager is not a constructor
TypeError: application 'space-analytics' died in status SKIP_BECAUSE_BROKEN: import_hammerjs.default.Manager is not a constructor
at startHammer (http://localhost:5173/node_modules/.vite/deps/chartjs-plugin-zoom.js?v=dd653522:2497:14)
at Object.start (http://localhost:5173/node_modules/.vite/deps/chartjs-plugin-zoom.js?v=dd653522:2585:7)
at callback (http://localhost:5173/node_modules/.vite/deps/chunk-M4DQFMBH.js?v=dd653522:594:15)
at PluginService._notify (http://localhost:5173/node_modules/.vite/deps/chunk-PXBW5KHJ.js?v=dd653522:5149:11)
at PluginService._notifyStateChanges (http://localhost:5173/node_modules/.vite/deps/chunk-PXBW5KHJ.js?v=dd653522:5180:10)
at PluginService._descriptors (http://localhost:5173/node_modules/.vite/deps/chunk-PXBW5KHJ.js?v=dd653522:5166:10)
at PluginService.notify (http://localhost:5173/node_modules/.vite/deps/chunk-PXBW5KHJ.js?v=dd653522:5131:82)
at Chart.notifyPlugins (http://localhost:5173/node_modules/.vite/deps/chunk-PXBW5KHJ.js?v=dd653522:6401:26)
at Chart._initialize (http://localhost:5173/node_modules/.vite/deps/chunk-PXBW5KHJ.js?v=dd653522:5744:10)
at new Chart (http://localhost:5173/node_modules/.vite/deps/chunk-PXBW5KHJ.js?v=dd653522:5713:10)
And Single-spa project is running without showing the chart. That is why I guess, there is a uncompatibility between single-spa and chart.js. @joeldenning Could you inform me?
Beta Was this translation helpful? Give feedback.
All reactions