-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
use import.meta.hot in a vitepress plugin #10486
Comments
I make it work with this should be updated in the docs |
|
Hello @emersonbottero. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it! |
is anyone working on this ? @emersonbottero @bluwy |
I don't think so. Feel free to take it! |
Can you guide me on which exact snippet should i update with this import?
|
I should have created a branch and keep that state there. while trying to communicate between server and client and when I tried to use https://vitejs.dev/guide/api-plugin.html#client-to-server I needed to add so the build stop complaining.. and I would use Client-server Communication and Server-Client communication for that. |
@emersonbottero in that case it isnt the solution its just a hack if i am not wrong? |
I think we still need better documentation for |
Shouldn't this fix the issue? I was suggesting to add a similar info of that to the plugin API docs too. |
Yes. But I tried to replicate the messages using the examples in the docs and it didn't worked. |
Describe the bug
Trying to implement client server communication in a vite-plugin I'm receiving Property 'hot' does not exist on type 'ImportMeta' just like in #416.
Try to import vite/hmr but it is not exported
but importing vite/client fix it (at least volar and build stop complaining...)
but when I run client I got an error in the import line
https://github.com/emersonbottero/vitepress-plugin-search/blob/flexsearch/src/Search.vue#L4
GET http://localhost:5173/@fs/C:/Users/emers/Source/Repos/vitepress-plugin-search/dist/Search.vue net::ERR_ABORTED 500 (Internal Server Error)
P.S.:
I'm trying to improve the vitepress-plugin-search so it is easy to provide options to the builder and search.
in the current version is hard to add languages for example
Reproduction
press . on my repository within the browser 😁
Steps to reproduce
pnpm i
pnpm build
cd demo
pnpm i
pnpm dev
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: