Uncaught (in promise) SyntaxError: Must be called at the top of a `setup` function
frederikheld opened this issue · 2 comments
frederikheld commented
Reporting a bug?
The above error message is very useless because it does neither tell me what the problem is nor how this could be fixed.
I had this error several times and I think I remember that this can be fixed with some i18n init stuff but every time I encounter it, I have to waste several hours to figure it out again.
Expected behavior
A clear error message that tells me:
- what went wrong
- and how to fix it (because I remember that there was one specific solution but I can't find it in the docs)
A note about this error and the solution (or possible solutions) in the docs.
Reproduction
//
System Info
System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
Yarn: 1.22.21 - /usr/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
I mainly use Firefox (currently 125.0) and Chromium (currently 123.0) for development and it happens in both.
Screenshot
Last line is the position in my own source code where the error comes from. The stack trace is way longer though.
Additional context
No response
Validations
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion
- The provided reproduction is a minimal reproducible example of the bug.
hakityc commented
同样的问题
hakityc commented