#tauri-plugin-window-state-api problem

21 messages · Page 1 of 1 (latest)

opaque lynx
#

Everything was good until I done npm install flatted to save object to local storage in my another js file. Is thats because of this library or it just timed perfectly and tauri-plugin-window-state-api stoped working for everyone?

wispy dawn
#

is it still in your package.json file?

opaque lynx
#

yes

#

I can just delete it from this file ot I need do it weith some terminal command?

wispy dawn
#

it must be in the package.json file

#

in the dependencies section

opaque lynx
#

I thought about flatted

wispy dawn
#

if you re-run npm install (without any dependencies behind that), does it give you any errors?

wispy dawn
#

hmm, that's fine

#

can you post the dependency list from your package.json file here so i can try to reproduce it?

opaque lynx
#

I guess I need to delete flatted library, but how to do it correctly?

opaque lynx
wispy dawn
#

remove it from package.json and re-run npm install

#

makes no sense that it would cause the issue

wispy dawn
#

so of course it complains that it can't find it.

opaque lynx
#

but why it's happened ? I changed nothing in it

wispy dawn
#

well, it can't just disappear

#

i assume you removed it somehow a few days/weeks ago and this was the first time you ran npm install again.

#

for context npm install flatted runs the same cleanup as npm install does, so it checks the full dependencies list and removes unneeded stuff from the node_modules folder