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

Uncaught (in promise) SyntaxError: Must be called at the top of a setup function #1703

Open
5 tasks done
frederikheld opened this issue Apr 23, 2024 · 2 comments
Open
5 tasks done
Labels
Status: Review Needed Request for review comments

Comments

@frederikheld
Copy link

frederikheld commented Apr 23, 2024

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

image

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

@frederikheld frederikheld added the Status: Review Needed Request for review comments label Apr 23, 2024
@Hakityc
Copy link

Hakityc commented Jul 26, 2024

同样的问题

@Hakityc
Copy link

Hakityc commented Jul 26, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

No branches or pull requests

2 participants