-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Question] Frontend development, how to hot reload? #8368
Comments
Hot reload works for me out of the box, following the guide. If it does not for you, there is not enough info to understand the root cause. |
Is there any information that would be helpful? Here are the few errors that I can see: Docker
|
It seems that setting {
"scripts": {
"start": "WATCHPACK_POLLING=true webpack serve --env API_URL=http://localhost:7000 --config ./webpack.config.js --mode=development",
}
} |
All these errors are not related to webpack and hot reload. |
I wish I could help you help me, but I don't know enough to know what logs to provide that would be helpful. Other than to say that, for some reason, it is not working on my system. What would be your first steps to fix this problem? How can I help? |
I followed the developer install instructions here.
After running the dependencies in VSCode and running
yarn run start:cvat-ui
, it seems as if I need to re-runyarn run start:cvat-ui
in order to see my changes. Am I doing something wrong? I made no changes to the code, trying both commit 6b96298 and releasev2.17.0
.Specifically, I am trying to edit canvas-layout.tsx with just a
console.log('Test');
to see if it works. Editing other files, such as the package.json triggers the reload, but the actual code that I want to work on does not.I'm new to this, so any help would be appreciated! I tried my best to research Webpack 5 HMR fixes before coming here, and none of the ones I tried worked either.
If any of this matters:
server: debug
CVAT_UI_HOST
is not set127.0.0.1:3000
andlocalhost:3000
Something else to note, while following the guide I needed to install extra packages:
Error:
Fixed with:
And removing these lines:
See ec28076#r145899115 and https://github.com/xmlsec/python-xmlsec
Please let me know if you need any info / logs. Thank you for your time!
EDIT: Included the right link to install instructions & fixed typos, oops!
The text was updated successfully, but these errors were encountered: