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
However, when I run npm run check, I still get the following errors, which originate from node_modules/:
/Users/cor/Developer/project/node_modules/svelte-fa/src/fa.svelte:86:9
Error: This condition will always return 'false' since the types 'boolean' and 'string' have no overlap. (js)
let flipY = 1;
if (flip == 'horizontal') {
flipX = -1;
/Users/cor/Developer/project/node_modules/svelte-fa/src/fa.svelte:88:16
Error: This condition will always return 'false' since the types 'boolean' and 'string' have no overlap. (js)
flipX = -1;
} else if (flip == 'vertical') {
flipY = -1;
/Users/cor/Developer/project/node_modules/svelte-fa/src/fa.svelte:104:6
Error: Variable 'i' implicitly has an 'any' type. (js)
{#if i[4]}
<svg
/Users/cor/Developer/project/node_modules/svelte-fa/src/fa.svelte:108:12
Error: Variable 's' implicitly has an 'any' type. (js)
class={clazz}
style={s}
viewBox={`0 0 ${i[0]} ${i[1]}`}
/Users/cor/Developer/project/node_modules/svelte-fa/src/fa.svelte:109:21
Error: Variable 'i' implicitly has an 'any' type. (js)
style={s}
viewBox={`0 0 ${i[0]} ${i[1]}`}
aria-hidden="true"
/Users/cor/Developer/project/node_modules/svelte-fa/src/fa.svelte:109:29
Error: Variable 'i' implicitly has an 'any' type. (js)
style={s}
viewBox={`0 0 ${i[0]} ${i[1]}`}
aria-hidden="true"
... and many more
They are coming from fa.svelte (svelte-fa), which I'm importing like this:
importFafrom'svelte-fa/src/fa.svelte';
Why is this happening?
The text was updated successfully, but these errors were encountered:
node_modules are considered read-only and unchangeable, so they should not be diagnosed. Make an exception for src/node_modules as this is a Sapper convention
sveltejs#1056, sveltejs#1100
node_modules are considered read-only and unchangeable, so they should not be diagnosed. Make an exception for src/node_modules as this is a Sapper convention
#1056, #1100
Co-authored-by: cor <[email protected]>
My
tsconfig.json
is pretty much the default for a SvelteKit project, with an addedexclude
property:I'm also using the
--ignore
flag in mypackage.json
:However, when I run
npm run check
, I still get the following errors, which originate fromnode_modules/
:They are coming from fa.svelte (svelte-fa), which I'm importing like this:
Why is this happening?
The text was updated successfully, but these errors were encountered: