-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
Add docs about page keeping auto refreshing #266
Comments
This is probably a Vite issue. Do you also have this with |
I just tried the latest here is my package.json. |
As I said, I don't think it's related to vite-plugin-ssr. |
I don't think so either but I think I have an idea of what it is now @brillout, Even if it not your problem it make a very bad user experience and a very unwelcoming one at that. I found this issue after much looking. Could you somewhere in your documentation say
I think this is going to happen to anyone run vite in a container. This is all I am asking for, You said
I think add info on how to debug this is going to help enforce this point of view. |
Good point, I will create a new |
Thankyou a lot |
👍 And please let me know if you find other such paper cuts. I do want to polish vps. I'm going to implement the |
I Just figure things out I also asked vite for troubleshooting section here I found out that the issue I point you to was lock I was going to commit there about how I had the same problem and ask them to add a troubleshoot section. Most of my problem occur because of 2 things 1.) I am trying to program over a local network I have vite listen to 0.0.0.0 I have to allow systemd to allow traffic from the ports I want to use so far I open up 2.
I add this to my config
This setting I believe are commonly untested because it is consider a security hole. But Ironically IMHO it create one. This is bad for many reason the main one is If you are using a local network you should not have to hook up vite to use the internet and your going to need to listen to the outside world in odder to do it. I could make it a little safer by just listen to one ip address but since I am trying to trouble shoot i figure to listen to them all. It has no domain name and I am running it only when I working on it. And I believe I am behind 2 nats with an uncommon port number. I am using a raspberry pi in headless mode. It has to run in a container in odder for me to use 64-bit or I need to reinstall the system and start from scratch. Working from a container I believe is safer. There is no such thing a completely secure unless you don't use it and even that not completely safe. I was getting TypeError: Cannot read properties of null from vite hydrate process..
I found out this was caused by me using clientPort instead of port in hmr server section in my config. I just post this to let people who might have this problem know there not alone; Maybe I am the only one because I am just weird and won't bow down to how thing are typical done. Like I said not your problem but thought you might want to know, I am ecstatic I finally able to get this to work. |
@frog-o 👍 |
something that i wanted to do was add fastify instead of express I had to change index.ts to this
This does not work on you production target. Looking at vite doc dosen't help. Your are doing a lot I don't understand.
yarn 3 dose not work in PNP mode a real bummer. I have to add |
@frog-o Try to find the answers on your own before asking stuff |
I always try to look for the answer first but i do have problem with
comprehension and finding things. At times i do overlook things. I think
very differently than most so it takes me a lot longer to go through
documents and makes finding things a lot more difficult if not impossible.
It just a small paper cut i thought you ask about. I never really meant for
an answer just letting you know it taking me some time.
…On Sun, Feb 27, 2022, 9:00 AM Rom ***@***.***> wrote:
@frog-o <https://github.com/frog-o> Try to find the answers on your own
before asking stuff
—
Reply to this email directly, view it on GitHub
<#266 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALNZ2Z5XL3PLYWHYUPF6BQ3U5IU7NANCNFSM5O4F4MJQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I agree but the problems you mentioned are unrelated to vps |
Please don't get annoyed by this but to me they're absolutely related.
It's all about usability of your plugin. It doesn't do the user any good
to have a very complicated but powerful plugin if they don't have the
knowledge to use the plugin properly documented. And i think everybody
wants to use plugin or whatever as quickly as possible. ***I do see why
you don't like having issues opened*** it makes your project look bad. I
thought the questions i asked should be a separate issue but i really don't
want to open another , I think it would just annoy you ***i am greatful for
anything you are willing to do.*** I don't what to be like the mouse in('If
You Give A Mouse A Cookie')[
https://www.theodysseyonline.com/give-mouse-cookie]
I was thinking you could add a nfaq(not so frequently asked questions or i
would rather call a QSQ quick start question) to quickly start using your
plugin. I thought this would make your project look awesome but than again
like I said ***i see things very differently***
I understand if all this is to complicated or just to annoying to do. The
last thing i wanted to be is a pest.
I think i just end my conversation here and say thanks for whatever you
decide to do.
Just to give you example of usability problems I am have and how i feel it relates
when I asked about
where is index.html
In vite documentation in **getting started**(here) [https://vitejs.dev/guide/#community-templates]
it talk about index.html
When I scaffold the project like they tell me to (follow the getting started tutorial) with there command ---> it give me the index.html file just file. IMHO this has to be related to something that your plugin is doing.
It look like you are doing something other then the default. Now I have to dig though and find out why.
How I am supposed to know how to use your plugin if the index.html file not there?
How am I supposed to follow the documentation from vite?
what a headache. I don't mind reading thing but it would be nice if i could do something instead of spending hours on things tring to figue how it works.
It is all related to how do I use your plugin.
|
In odder to help with docs of my problem I mention above it is also mention here I am still looking for answers and I thought it might be helpful if anyone is following this. |
Closing for lack of interest. |
about every 6 second my page refresh and i have no clue how to turn this off. Just download and followed your tutorial
The text was updated successfully, but these errors were encountered: