staskobzar/vue-audio-visual

Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/vue.js?v=d2d7e806' does not provide an export named 'default'

wty92911 opened this issue · 6 comments

when I use "import {AVPlugin} from 'vue-audio-visual'" in my project the browser warns.
How should I deal with it ?

Hello,

I can not re-create this problem.

Are you sure it is coming from this plugin? Because you are not importing default value since it is in "{}" parentheses.

Can you provide more details on how you are using it?

For example, "Import xxx from 'vue-audio-visual',the vscode tells me "Cannot find declaration file for module 'vue-audio-visual'."
image
I installed vue-audio-visual by npm

OK,got it! It works after I add './dist/vue-audio-visual' in the package.json