-
Notifications
You must be signed in to change notification settings - Fork 21
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
npm run start not working #410
Comments
upstream for my local is the mozilla/redash repo. I tried this to fix: git checkout master docker-compose build worker docker-compose up Still, |
@alison985 you can look at the state before merge if you checkout the branch Another suggestion worth trying is to checkout the upstream https://github.com/getredash/redash/ and check if the same issue exists there. If so then we can know it's unrelated to the merge itself but rather an issue in the upstream repo and we can file it there too. You could also try |
@emtwo The first thing I tried was reverting the flower commit and the merge from upstream work. When that didn't work I forced going back to mozilla/redash 13.3 release (CLI process outlined in comment above). I'm still having the issue which is making me think this is an npm package that isn't pinned - so I'm going to go searching google/SO because if that's it someone else will have encountered it. |
@alison985 I wasn't able to reproduce your issue, but I did not use the 13.3 branch as well. To be honest I don't know where the 13.3 branch comes from at all, I've always used master directly instead. My suggestion for your workflow is to stop using an own fork and work directly in branches of the mozilla/redash repo. That way you only have to handle one other git remote (getredash/redash) instead of two (mozilla/redash and getredash/redash). My workflow for a successful
The npm build log shows a warning in query.js but succeeds generally:
Does that help? |
@jezdez I did what you said above, started with a clean clone of Mozilla's fork. I also had to run I than ran the test suite and got 5 failures. I thought running the tests and having them pass was part of the merge/deploy process? It seems to have been removed from Github PR merges but is it not just somewhere else later in the pipeline? I'm filing bugs for each of the test failures now. Back to does this fix I'm sorry if I wasn't making it clear what I meant by npm run start doesn't work and that " npm run start doesn't update the local javascript when I save a change to a javascript file. " What I mean is that I can be running the npm run start command in terminal 2 but the browser won't update to what I've saved for front-end changes until I do npm run build again. In other words, testing whether front-end code changes work is a way longer process than normal. I'm running npm 6.1.0. Docker: 18.03.1-ce-mac65 (24312) Docker Compose: 1.21.1 @jezdez, Can you get front-end changes to be picked up when npm run start recompiles? |
webpack 3.6.0 and node 8.1.3 |
There are a few things in your reply:
|
@alison985 Were you able to make things work? If not, would you mind scheduling a meeting so we can work this through directly? |
I recently had a problem in the firefox-hardware-report repo where webpack stopped re-compiling files as they changed. The solution was to add a |
current line as is:
|
@alison985 I'm not sure how I can help at this point :( It seems pretty annoying to have to run build every time to update the bundle. @emtwo @washort @spasovski Can you think about something to fix this? |
I can't think of anything immediately beyond what has already been discussed. I do recall I had an issue in redash (with my query versions work) where the local JS would work yet it would error out on production -> had to start doing To further isolate the fresh build I'd try running like an ubuntu VM and trying the local server there. If it works it might be a good place to start checking various framework/build tool versions. |
I found this thread about this issue: webpack/webpack-dev-server#875 which seems to happen regularly in edge cases of environment setup. It’s a loooooooooong thread so avoid reading it if you can. But it got me to finding the issue: basically webpack-dev-server is compiling, it seems to even being putting the file in the right place but the file name association is the issue |
@alison985 Were you able to get anything from the comments upstream? |
Yes! Arik's comment covered it. No idea why what I had been doing used to work, but I'm working again now. 🎉 |
ZOMG! ヽ(•‿•)ノ |
Right now the state of my local is that npm run start doesn't update the local javascript when I save a change to a javascript file. I have to run npm run build before it will show the change. It did not used to act this way. I think it's related to the upstream merge, but will test.
The text was updated successfully, but these errors were encountered: