Error regarding class structure
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- game-dev
Research direction
The report points to main.js:59 and includes the class declaration that triggers the syntax error. Start by reproducing the error with that snippet and checking the scripting runtime's supported class and static-block syntax; done would require a confirmed cause and a clearly documented compatible form, but no specific code change is identified.
Written by the indexing model from the issue text.
Description
There is a problem in scripting:
The code is:
class className{
constructor(){};
static{
variableName = 0;
}
}
And it gave me this error:
16:59:47[Scripting][error]-Plugin [Sample Add-on Pack - 1.0.0] - [main.js] ran with error: [SyntaxError: invalid property name at main.js:59]
What could be the problem?
- Dominant language
- TypeScript
- Stars
- 241
- Forks
- 48
- Avg merge
- 17m
- Merged PRs (30d)
- 1
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/minecraft-scripting-samples
-
Difficulty 5/5 Over a week Newbie friendliness 1/100
microsoft/minecraft-scripting-samples#316 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
microsoft/minecraft-scripting-samples#296 ·
Maintainers usually reply within 1 day
-
Chat exportOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/minecraft-scripting-samples#27 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
microsoft/minecraft-scripting-samples#9 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
microsoft/minecraft-scripting-samples#8 · 13 comments · 2 reactions ·
Maintainers usually reply within 1 day
All issues in microsoft/minecraft-scripting-samples
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
aiko-chan-ai/DiscordBotClient#380 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vercel/ai-elements#507 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 Half a day Newbie friendliness 84/100
anaclumos/qa-interns#148 · 1 comment ·
Maintainers usually reply within 1 day