You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running svelte-check, after installing svelte-routing I receive an error like the following:
====================================
Loading svelte-check in workspace: /code/application
Getting Svelte diagnostics...
/code/application/src/Welcome.svelte:29:23
Error: Type '{ prop: string; }' is not assignable to type 'IntrinsicAttributes'.
Property 'prop' does not exist on type 'IntrinsicAttributes'. (ts)
<MyComponent prop="value" />
====================================
svelte-check found 1 error, 0 warnings, and 0 hints
Repro steps
Install Svelte template and setup Typescript
npx degit sveltejs/template example && cd example
node scripts/setupTypescript.js
yarn
We can simply update the svelte2tsx dependency to at least version 0.2.0, but since it's only used in here for its type, and this is likely to happen again, I'd say you could keep it as latest in package.json instead of locking to a version.
Temporary workarounds
To workaround this, in the meantime, one can install svelte2tsx at the latest in their own application to update the declaration files.
The text was updated successfully, but these errors were encountered:
You might have to coincide that with changing the svelte2tsx package to being a devDependency instead of dependency too, but I'm not entirely sure on that.
Error
When running
svelte-check
, after installingsvelte-routing
I receive an error like the following:Repro steps
src/MyComponent.svelte
with contents:src/App.svelte
with contents:Alternative repro:
You can clone this repo here and see the differences in running between
HEAD
andHEAD~1
: https://github.com/rjschie/svelte-routing-issue-exampleProposed solutions
We can simply update the
svelte2tsx
dependency to at least version0.2.0
, but since it's only used in here for its type, and this is likely to happen again, I'd say you could keep it aslatest
in package.json instead of locking to a version.Temporary workarounds
To workaround this, in the meantime, one can install
svelte2tsx
at the latest in their own application to update the declaration files.The text was updated successfully, but these errors were encountered: