-
Notifications
You must be signed in to change notification settings - Fork 59
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
.JSX, JS, .CSS files not updated after yarn start #69
Comments
Hi, any news on this ? |
Sorry for the delayed response! Could you provide a minimal test case that shows the issue (basically a zip file of the minimal amount of your plugin code needed to reproduce the problem)? If not, that's okay we'll still look into the problem. |
Hi @lots0logs, |
Sorry, I forgot to give you some informations :
Front end :
I think there is a problem with I'm using Local by Flywheel, windows 10. |
Thanks for those details. They are very helpful! 😃 |
Other info about this isssue : |
Same issue for me using Docker on Windows 10 Pro but everything works fine if I edit files inside the container.
With the poll option set to true everythings works now when editing files on windows |
I ran the command "npm run build" and the problem got resolved. |
Hi everyone! I have started using Could you please provide an example of the whole setup? Where do you run WordPress in your case? How do you avoid having to build to see the changes? Or is that needed? Thanks a lot! |
Running |
Having the same issue, I'm using Lando with Ngix and docker 2.1. Yarn start does not handle hot reload properly and thus I have to rebuild every time I want to see any changes. |
Also having the same issue. yarn start doesn't compile .jsx files. |
I have the same issue. yarn build doesn't compile anything.. |
I was having this issue as well and I solved it after many hours, so I hope this helps someone. I'm using macOS 10.14 and serving WP using Laravel Valet. This was two problems rolled into one: The possible source of the issue was posted in this issue, but may have been missed. @lots0logs answers:
I added So, @MarieComet, I see you had no errors and your script paths are to the built files. You probably have this same issue as me. Try the solution out. |
Hi I use bedrock for my WordPress website and i have the same problem. I need to run yarn build for see the change in visual builder... Yarn start don't apply the change. I develop on Mamp.. someone has ever had this problem ? I found my problem, i added in my config file the constant :
I thought the constant of debug was that of WordPress (WP_DEBUG) If you need help configuring with bedrock tag me |
Any update on this? I'm learning on my own custom module and I never know if my changes are just not working or not updated/compiling. |
I have the same problems the css fields are not loading and refreshing it, even the local server is not load! |
I'm currently working on ubuntu 20.04 running vagrant/Homestead and having the same issue. Weird as none of the solutions I've read won't work :/ This is what I get in the browser console: Cheers |
I hope this helps someone... I've tried all these solutions to no avail. 'yarn build' or 'npm build' works but not the 'yarn start' or 'npm start' functions. In my case, my issue is I'm using namespacing on my extension and module classes of PHP. I removed namespacing and used long-winded class names, including the prefix of the class as defined in package.json (probably the key part of all this) and it worked! |
Problem Description
Doc say running
yarn start
:"Runs the extension in development mode. Open your WordPress website to view it.
The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console."
But when I've done some changes to my .JSX files, or CSS files, terminal say "Compiling..." and "Compilled successfully" but after refreshing Visual Builder, my changes doesn't appear.
Sources that are loaded :
../plugins/my-plugin/scripts/builder-bundle.min.js
../plugins/my-plugin/scripts/frontend-bundle.min.js
I need to use
yarn build
to see changes in the Visual Builder...No error when compiling.
I'm missing something here ?
The text was updated successfully, but these errors were encountered: