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

Type error in create-svelte typescript default template #4787

Closed
SaeedYasin opened this issue Apr 30, 2022 · 2 comments
Closed

Type error in create-svelte typescript default template #4787

SaeedYasin opened this issue Apr 30, 2022 · 2 comments

Comments

@SaeedYasin
Copy link

Describe the bug

Created default todos app using typescript and got this error without making any code changes, I'll submit a PR.

Error

Reproduction

Run, npm init svelte@next svelte-todo
Choose Sveltekit Demo App, typescript, eslint, prettier and playwright.
Open svelte-todo code in vscode and goto src/routes/todos/index.ts and observe the error on line 2.

Logs

No response

System Info

System:
    OS: macOS 12.3.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 1.02 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.14.2 - /usr/local/bin/node
    npm: 8.5.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 100.0.4896.127
    Safari: 15.4

Severity

annoyance

Additional Information

No response

@dummdidumm
Copy link
Member

Pending fix for this in #4705 already, although we're not sure if we will merge as is or rethink where the types are imported from first.

@SaeedYasin
Copy link
Author

@dummdidumm alright, sounds like there is no need for this issue. I'll close it then. Thanks.

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

2 participants