-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"[Vue warn]: Failed to resolve component: van-button" #18
Labels
bug
Something isn't working
Comments
hi, here is my sample run the script "npm run build"; then comment the manualChunksPlugin(), rerun "npm run build & npm run preview" |
Please add import Components from 'unplugin-vue-components/vite';
...
plugins: [
Components({
resolvers: [VantResolver()],
include: [/\.vue$/, /\.vue\?/]
}),
],
... |
thanks, it worked. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi, i found a problem in the Console when deploy the build assets to the web server, the van component could not reconized by the vue.
https://stackblitz.com/edit/vitejs-vite-wbqtdm?file=README.md
the development env was okay, but it is not okay when run "npm run build" and deploy the dist directory to the web server.
sorry i could not found any online web server could serve the dist dir.
The text was updated successfully, but these errors were encountered: