forrest icon indicating copy to clipboard operation
forrest copied to clipboard

Adding a project with package.json without name causes all entries to not be clickable

Open koheiio opened this issue 6 years ago • 3 comments

Where is the configuration directory to remove the project manually? That way I can confirm the bug

I can't remove the entry from the app because entries aren't clickable

koheiio avatar Jul 06 '17 15:07 koheiio

Refined problem: Clicking all entries with names work right up until I click the one without the name, at that point nothing works.

screen shot 2017-07-12 at 10 35 59 am

koheiio avatar Jul 12 '17 14:07 koheiio

Hey there. :)

Sorry for the late reply. Can you open the devtools CMD+ALT+I and post the error there. I assume your cms project, doesn't have a package.json?

The settings file should be here ~/Library/Application Support/Forrest/electron-settings/npm-app.json.

stefanjudis avatar Jul 20 '17 14:07 stefanjudis

It's alright, it does have one but it's just missing a name field. Malformed json in that way but it's out of my control, though temporarily adding a name doesn't change anything in forrest.

The following is what happens when I click the package with the missing name.

build.js:25 undefined
build.js:25 Uncaught TypeError: Cannot read property 'path' of undefined
activate @ build.js:25
Ce @ build.js:6
mountComponent @ build.js:8
(anonymous function) @ build.js:8
(anonymous function) @ build.js:8
...

No errors are thrown clicking the other packages afterwards, though they don't work.

In any case, thanks for the help and providing the settings directory ! That is sufficient enough for me to delete it and be careful next time. Though, having your app gracefully fail is never a bad thing :)

koheiio avatar Jul 22 '17 03:07 koheiio