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
'You need to install svelte2tsx >=0.4.1 if you want to generate type definitions'
);
}
}
...could fail for any of the following reasons:
typescript (or some other svelte2tsx peer dependency, theoretically) isn't installed
svelte2tsx isn't installed
svelte2tsx is out of date
🤷
At the moment, all errors are assumed to be 3. Also, it's maybe a bit odd that we throw an error, catch it, then immediately throw a different error, discarding the first.
Reproduction
npm init svelte@next my-package # select 'no' for typescript
cd my-package
npm i
npm run package
Describe the bug
I saw this error when running
npm run package
on a project:svelte2tsx
was installed; the source of the error was thattypescript
wasn't. We probably need to button up the error checking in https://github.com/sveltejs/kit/blob/master/packages/kit/src/core/make_package/index.js;emit_dts
(which importssvelte2tsx
) is called beforetranspile_ts
(which importstypescript
). This function...kit/packages/kit/src/core/make_package/index.js
Lines 228 to 240 in a12843c
...could fail for any of the following reasons:
typescript
(or some othersvelte2tsx
peer dependency, theoretically) isn't installedsvelte2tsx
isn't installedsvelte2tsx
is out of dateAt the moment, all errors are assumed to be 3. Also, it's maybe a bit odd that we throw an error, catch it, then immediately throw a different error, discarding the first.
Reproduction
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: