staskobzar / vue-audio-visual

VueJS audio visualization components
MIT License
723 stars 115 forks source link

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

Closed wty92911 closed 2 years ago

wty92911 commented 2 years ago

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

staskobzar commented 2 years ago

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?

wty92911 commented 2 years ago

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

wty92911 commented 2 years ago
image
wty92911 commented 2 years ago

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

mikeda37 commented 1 year ago

@wty92911 I got the same error. Could you tell me how you fix the package.json more specifically?

@staskobzar Are there any other ways to fix this other than modifying files in your plugin?

staskobzar commented 1 year ago

@mikeda37 I can not re-create this problem so I do not know how to fix it. if you provide details on how to re-create this bug or step-by-step instructions I can try when I have time