missing unsupported-nested-javascript documentation
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'.
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'.
I think the key part of the error message is the filename, which is omitted?
--> # …
Which probably has a node_modules directory in the path? If so, the fix for that will land as part of https://github.com/denoland/deno/pull/23173
Here's that line
/the/path/to/node_modules/.pnpm/[email protected][email protected]/node_modules/tailwindcss/types/config.d.ts
The error is triggered by
import type { Config } from 'tailwindcss/types/config.d';
Thanks! I'll try again when https://github.com/denoland/deno/pull/23173 lands.
Leaving this docs issue open because it's still odd to me that the URL in the error redirects to a page with no obviously relevant info.
@olets this has landed and has been released. are you still running into this?
@lucacasonato I don't have a handy way to confirm and I haven't found the error message source. If the unsupported-nested-javascript error output now explains the error, this can be closed. I see that the jsr.io search has no results for the search term "nest", but maybe the explanation is now in the console log.