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
When checked with deno check I get the following error message:
error: Uncaught Error: Error resolving package config for 'npm:katex@0.16.7/contrib/auto-render': [ERR_INVALID_PACKAGE_TARGET] Invalid "exports" target {"require":"./dist/contrib/auto-render.js","import":"./dist/contrib/auto-render.mjs"} defined for './contrib/auto-render' in the package config /home/martin/.cache/deno/npm/registry.npmjs.org/katex/0.16.7/package.json imported from file:///home/martin/.cache/deno/npm/registry.npmjs.org/katex/0.16.7/; target must start with "./"
at (ext:deno_tsc/99_main_compiler.js:600:28)
(using the latest deno 1.34.3)
The text was updated successfully, but these errors were encountered:
not-my-profile
changed the title
npm: import fails to check: Invalid "exports" target; target must start with "./"
deno check fails with npm: import: Invalid "exports" target; target must start with "./"
Jun 30, 2023
$ echo'import ReactDOMServer from "npm:react-dom@18.2.0/server";'>foo.ts
$ deno check ./foo.tsCheck file:///home/tv/tmp/z/foo.tserror: Uncaught Error: Error resolving package config for 'npm:react-dom@18.2.0/server': [ERR_INVALID_PACKAGE_TARGET] Invalid "exports" target {"deno":"./server.browser.js","worker":"./server.browser.js","browser":"./server.browser.js","default":"./server.node.js"} defined for './server' in the package config /home/tv/.cache/deno/npm/registry.npmjs.org/react-dom/18.2.0/package.json imported from file:///home/tv/.cache/deno/npm/registry.npmjs.org/react-dom/18.2.0/; target must start with "./" at <anonymous> (ext:deno_tsc/99_main_compiler.js:600:28)
When checked with
deno check
I get the following error message:(using the latest deno 1.34.3)
The text was updated successfully, but these errors were encountered: