Package unusable
See original GitHub issueThere are several issues with versions past v1:
- index.cts does not export URLPattern
- index.cts does not match the types (which say it exports URLPattern), so TS passes but it fails at runtime
- url-patterns.cts is not importable in recent Node versions because it’s not specified in the
exports
map - url-patterns.cts is not importable in TypeScript because there’s no
url-patterns.d.ts
- using
import {URLPattern} from "urlpattern-polyfill"
also polyfills the global, which is not what one expects - using
import "urlpattern-polyfill"
as a polyfill is not usable in TypeScript because theURLPattern
is not defined globally
Issue Analytics
- State:
- Created a year ago
- Comments:16 (12 by maintainers)
Top Results From Across the Web
Go package unusable after installation - Stack Overflow
To perform the installation with modern versions of Go, you should run: go install github.com/go-bindata/go-bindata/go-bindata@latest.
Read more >Return Code for Unusable Package Setting - IBM
This document explains how iSeries Access for Windows ODBC driver uses the "return code for unusuable package" setting.
Read more >[Bug]: Package unusable after pack · Issue #11536 - GitHub
Part of how this project works is that it embeds various versions of postgres as static dependencies. Those dependencies are to be included...
Read more >Package vs Date and Package vs User unusable
Due to big _ahm_download_stats table (around 33.000 rows), the stats for Package vs Date and Package vs User are unusable. The result i...
Read more >pvpython fails to execute vtkpython (Debian package unusable)
Debian/Ubuntu python3-paraview package is not usable anyore. The symptom is that pvpython does not read from the file which name is passed ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fregante It doesn’t import a CJS file. It is a proper ESM module that is fully self-contained. The following HTML works for me without an issue:
You are right about the declare global, and the below works. We need to add tests for that