Skip to content
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

Error: sharedState is not defined [windows version] #2026

Open
hao1032 opened this issue May 15, 2024 · 2 comments
Open

Error: sharedState is not defined [windows version] #2026

hao1032 opened this issue May 15, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hao1032
Copy link

hao1032 commented May 15, 2024

Description

Using sharedState.data = "My-Data" in the scripting example throws an error.

Steps to Reproduce

Using sharedState.data = "My-Data" results in an error.
image

Using sharedState = {data: "My-Data"} does not produce an error.
image

Environment

  • App version: Version 2.14.0
  • windows version: windows 11
@hao1032 hao1032 added the bug Something isn't working label May 15, 2024
@hao1032 hao1032 changed the title Error: sharedState is not defined [windows 版本] Error: sharedState is not defined [windows version] May 15, 2024
@kics223w1
Copy link

Hi @hao1032

The sharedState in the feature Scripting Environment Variables is not yet implemented in Windows. So the application throws the error in the first case.

In the second case, you define the global variable in the script so everything works fine.

@hao1032
Copy link
Author

hao1032 commented May 16, 2024

Sure, the example provided for the Windows version is actually not usable. If necessary, I hope it can be modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants