-
-
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
Unable to follow the documentation to run smoothly. #2
Comments
hmmm that's pretty strange, the It definitely was compiling properly when I created |
Tomorrow I will try to reproduce this problem on another computer, perhaps because of my environment. I'll get back to you |
Thank you for your reply |
Nope, shouldn't matter -- the point of using it in a Dockerized setup is that your local environment doesn't matter. I'll try to reproduce it, and let you know. |
I attempted to reproduce your issue, but I'm unable to. I did the following:
...and wait for the above to finish, until we see:
...and wait until we see:
Then I'm able to load the test app in the browser without issues: Nowhere in this process do I see any build errors. Can you show me what build errors you're seeing, and what you're doing to get them? |
ahhhh my bad @dohooo -- you are saying it's the |
Okay so the reason it fails is it runs I think the right thing to do here is just to remove the There probably isn't much of a use-case for building the app (the purpose of Vite.js Docker Dev is to help you develop Vite in a containerized way, not as a way for you to develop your own app. But I agree it should work out of the box. |
Addressed in: 31d301d Released as: https://github.com/nystudio107/vitejs-docker-dev/releases/tag/1.0.4 |
ahhhh, I thought I'd finally get a chance to submit PR to the library, but it looks like I didn't. But thank you for checking anyway, okay |
I'm sorry, you're right, I should have worked with you to get this PR integrated instead of doing it myself. Apologies. Please don't let it discourage you from submitting future PRs! |
First of all, thank you for making this tool, can let me debug vite more easily and learn it. Thank you!
Maybe it's not a bug, but I want to give some feedback, because there may be people out there who have the same problem as me.
Describe the bug
When I run 'make app-pnpm run build', I will be prompted with many type check errors by default, most of which are caused by the configuration problem of '/app/tsconfig.json' in the '/app' directory, which causes the incompatible vite module type check and causes the execution failure.
I recommend either removing
tsc
from build scripts or changing the default configuration in tsconfig.json so that it can at least run dev/build/serve.To reproduce
Steps to reproduce the behaviour:
vitejs-docker-dev
repository:Clone:
git clone https://github.com/nystudio107/vitejs-docker-dev.git
Download: vitejs-docker-dev
vitejs-docker-dev
directory:This will be somewhat lengthy, as it builds the Docker image, and then clones down the vitejs repository, and installs all of its dependencies
vite/
dir):app/
dir):Expected behaviour
works fine
Screenshots
some types error from
/vitejs-docker-dev/vite/packages/vite/src
Versions
The text was updated successfully, but these errors were encountered: