Open
Description
In a dry run I get
error[unsupported-nested-javascript]: referenced a JavaScript module without type declarations from a TypeScript module
--> # …
= hint: add a type declaration (d.ts) for the JavaScript module, or rewrite it to TypeScript
info: JavaScript files with no corresponding declaration require type inference to be type checked
info: fast check avoids type inference, so referencing a JavaScript file with no type declarations is not supported
docs: https://jsr.io/go/slow-type-unsupported-nested-javascript
The link https://jsr.io/go/slow-type-unsupported-nested-javascript redirects to https://jsr.io/docs/about-slow-types, which doesn't have anything explicit about nested types.
Compare to the missing-explicit-type
error, which links to https://jsr.io/go/slow-type-missing-explicit-type, which redirects to the relevant https://jsr.io/docs/about-slow-types#explicit-types
--
Tangent: if anyone reads this has links or recommendations for resolving the unsupported-nested-javascript
I'd gladly take them. Context: I'm importing tailwindcss/plugin.js
, which is typed in tailwindcss/plugin.d.ts
, with import plugin from 'tailwindcss/plugin.js'
.
Metadata
Metadata
Assignees
Type
Projects
Status
Ready