I'm trying to import a graphing component into my component, but it errors out with "TypeError: Cannot read properties of undefined (reading 'default')"
I've tried it with several charting components and they all have the same error.
I created a sample project to show the error:
https://github.com/skidvis/astro-vue-error/blob/main/src/components/Test.vue
The error is as follows:
error Cannot read properties of undefined (reading 'default')
File:
C:\Github\error\C:\Github\error\C:\Github\error\src\components\Test.vue:12:21
Stacktrace:
TypeError: Cannot read properties of undefined (reading 'default')
at C:/Github/error/src/components/Test.vue:12:21
at async instantiateModule (file:///C:/Github/error/node_modules/.pnpm/vite@4.1.4/node_modules/vite/dist/node/chunks/dep-ca21228b.js:52420:9)
According to the vue docs, I'm registering the component correctly:
https://vuejs.org/guide/components/registration.html#local-registration
Can someone point me in the right direction?