Right side of assignment cannot be destructured
This may not be a solid issue but I am really confused. I did not have this problem when I was using vanilla Javascript; however, switching to solidjs changed a massive amount of how the app functions.
So I am trying build a tauri app and I have a command:
This is the button that should execute that command:
In vanilla javascript the command could be executed fine. However, I created a solid version so the app might be a little easier to reason through. All my commands got added to a commands.jsx file and the commands should get imported to get used. So i'm exporting the function from commands and importing it into the module I need to use it in.
However, when I press the button that should execute it I get the error:
I have absolutely no idea why it's broken, why it thinks it's destructuring something and how I might go about fixing it. Can someone give me some insight?
So I am trying build a tauri app and I have a command:
This is the button that should execute that command:
In vanilla javascript the command could be executed fine. However, I created a solid version so the app might be a little easier to reason through. All my commands got added to a commands.jsx file and the commands should get imported to get used. So i'm exporting the function from commands and importing it into the module I need to use it in.
However, when I press the button that should execute it I get the error:
Unhandled Promise Rejection: TypeError: Right side of assignment cannot be destructuredI have absolutely no idea why it's broken, why it thinks it's destructuring something and how I might go about fixing it. Can someone give me some insight?
