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

Unexpected token #122

Closed
winston0410 opened this issue Mar 31, 2022 · 2 comments
Closed

Unexpected token #122

winston0410 opened this issue Mar 31, 2022 · 2 comments
Labels
question Further information is requested stale Issues that can probably be closed (esbuild-svelte isn't to blame for the problem)

Comments

@winston0410
Copy link

Describe the bug
A clear and concise description of what the bug is.

 > src/MetaData.svelte:2:17: error: [plugin: esbuild-svelte] Unexpected token
    2 │ 1: <script lang="ts">
      ╵                  ^
2:   export let title: string, description: string, image: string, url: string;
                     ^
3: </script>
4:

   src/index.ts:1:26: note: The plugin "esbuild-svelte" was triggered by this import
    1 │ export * as MetaData from './MetaData.svelte'
      ╵                           ~~~~~~~~~~~~~~~~~~~

To Reproduce

The file that causes the error:

<script lang="ts">
	export let title: string, description: string, image: string, url: string;
</script>

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • esbuild-svelte version: 0.6.3
  • esbuild version: 0.12.24
  • Svelte preprocessors used (if any):

Additional context
Add any other context about the problem here.

@winston0410 winston0410 added the bug Something isn't working label Mar 31, 2022
@Prinzhorn
Copy link
Contributor

To Reproduce

Can you post full steps to reproduce, including package.json and your esbuild build.js script? I'm sure you've added the required setup for Typescript? https://github.com/EMH333/esbuild-svelte#typescript-and-other-svelte-preprocessing

@EMH333 EMH333 added the question Further information is requested label Mar 31, 2022
@EMH333 EMH333 added stale Issues that can probably be closed (esbuild-svelte isn't to blame for the problem) and removed bug Something isn't working labels Apr 13, 2022
@EMH333
Copy link
Owner

EMH333 commented Jul 16, 2022

I'm going to close this because I suspect you haven't set up typescript integration and it's been 3+months since an update. Feel free to respond if an issue persists and you have more details to share

@EMH333 EMH333 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale Issues that can probably be closed (esbuild-svelte isn't to blame for the problem)
Projects
None yet
Development

No branches or pull requests

3 participants