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

Parsing error: Identifier expected. with SvelteKit #168

Open
GauBen opened this issue Feb 17, 2022 · 0 comments
Open

Parsing error: Identifier expected. with SvelteKit #168

GauBen opened this issue Feb 17, 2022 · 0 comments

Comments

@GauBen
Copy link

GauBen commented Feb 17, 2022

Considering the code

<script context="module">
  export const load = () => ({
    stuff: {
      title: 'Hello World!',
    },
  })
</script>

<h1>Hello World!</h1>

image

This issue is a combination of coincidences, and happens when these conditions are met:

  • Setting { "semi": false } in .prettierrc
  • Having no component-level <script>
  • Having a ) as the final character

This is solved by adding a semi-colon before references_and_reassignments, please see the upcoming PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant