Open tuckergordon opened 1 year ago
For anyone who needs a workaround in the meantime, I was able to get around these errors by adding "noResolve": true
to the jsconfig.json
's compilerOptions
. A bit of a sledge hammer solution but it does the job
Is this still happening with the latest release?
Describe the bug The new reference types introduced in 2d1193c result in
svelte-check
errors when SMUI components are imported into a JavaScript Svelte project.To Reproduce Steps to reproduce the behavior:
npm create svelte@latest my-app
a. Choose "Library project" b. Choose "Yes, using JavaScript with JSDoc comments"npm i -D @smui/button
Add that SMUI element to a page, e.g.
path/to/node_modules/@smui/ripple/src/index.ts:1:23 Error: Cannot find type definition file for './ambient-ripple'. ///
Doing this locally fixed the errors for me.