Closed AWolf81 closed 5 years ago
I tried to reproduce but got a different error, probably because I have a global version of react-scripts
installed. I guess this does not affect this issue since we are checking if node_module folder exists, but posting it just in case.
@menor Yeah I think because you have react-scripts installed globally, it probably moves on to the next module that it finds missing (I'm speculating but it would make sense).
For the original suggestions in the issue...
On any task run with-out node_modules folder, display an error dialog that's giving details to the issue & bail early.
We could also display a button in the dialog so node_modules can be reinstalled from that notification. But I think that's optional as there will be a button in the UI.
@AWolf81 I don't think these will be necessary anymore right? Because all Task panes will now be hidden completely when #318 lands. Or is there another case that would require this?
@melanieseltzer Yes, you're right. There is no other case. Once reinstall lands this is not needed as any button will be hidden and we're not running into this issue.
I think we can close this once reinstall is merged.
Closing as we're checking that all dependencies are installed. Reinstall feature merged.
During my work on #260 I've noticed an issue that can't be fixed in Guppy right now & Guppy doesn't display anything what's wrong.
Describe the bug If
node_modules
folder is missing there will be an error message thatreact-scripts
can't be found. This will happen on projects cloned from Github or if you restore a previously deleted project from recycle bin and re-import it to Guppy. To reinstallnode_modules
we're adding a feature see PR #318.To Reproduce
node_modules
folderExpected behavior On any task run with-out
node_modules
folder, display an error dialog that's giving details to the issue & bail early. The info will give details how to fix the problem. We could also display a button in the dialog sonode_modules
can be reinstalled from that notification. But I think that's optional as there will be a button in the UI.Screenshots![error message](https://user-images.githubusercontent.com/3046542/48300517-1ec70700-e4df-11e8-8013-35298de03421.png)
Environment:
Todos
node_module
folder exists todependencies.service
.taskRun
&launchDevServer
intask.saga
.node_modules
missing.