esm.sh
esm.sh copied to clipboard
Failed to import - preact-iso
Failing module
- GitHub: https://github.com/preactjs/wmr/tree/main/packages/preact-iso
- npm: https://www.npmjs.com/package/preact-iso
import { lazy } from 'https://esm.sh/preact-iso'
// or
import { lazy } from 'https://esm.sh/[email protected][email protected]'
Error message
After running deno run I got this:
Download https://esm.sh/[email protected][email protected]
Download https://cdn.esm.sh/v68/[email protected]/X-ZGVwczpwcmVhY3RAMTAuNi42/deno/preact-iso.js
Check file:///Users/myobie/src/github.com/shareup/pwa-resources/index.ts
error: TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'AnyComponent'.
import { AnyComponent, FunctionComponent, VNode } from 'preact';
~~~~~~~~~~~~
at https://cdn.esm.sh/v68/[email protected]/router.d.ts:1:10
TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'FunctionComponent'.
import { AnyComponent, FunctionComponent, VNode } from 'preact';
~~~~~~~~~~~~~~~~~
at https://cdn.esm.sh/v68/[email protected]/router.d.ts:1:24
TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'VNode'.
import { AnyComponent, FunctionComponent, VNode } from 'preact';
~~~~~
at https://cdn.esm.sh/v68/[email protected]/router.d.ts:1:43
TS2671 [ERROR]: Cannot augment module 'preact' because it resolves to a non-module entity.
declare module 'preact' {
~~~~~~~~
at https://cdn.esm.sh/v68/[email protected]/router.d.ts:37:16
Found 4 errors.
Additional info
- esm.sh version: V68
- Deno version: 1.18.2
this is types issue, i will look into it. you can disable the typing temporarily by no-check query