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
After running deno run --config=deno.json test_deps.ts I get this:
error: Uncaught SyntaxError: The requested module '/v61/lz-string@1.4.4/deno/lz-string.js' does not provide an export named 'compressToEncodedURIComponent'
at <anonymous> (https://cdn.esm.sh/v61/@testing-library/dom@8.11.1/deno/dom.js:2:670)
It looks like the issue might be that lz-string is exporting default but not exporting the values like it is expected to. I'm able to lz-string by doing the following and lzString has compressToEncodedURIComponent on it.
import lzString from "https://esm.sh/lz-string@1.4.4?target=deno&pin=v61";
If I import * as lzString, the only key on lzString is default.
KyleJune
changed the title
Failed to import - @testing-library/react
Failed to import - @testing-library/react and lz-string
Jan 10, 2022
Failing module
This module is used for testing react components.
Error message
After running
deno run --config=deno.json test_deps.ts
I get this:Additional info
I checked https://cdn.esm.sh/v61/lz-string@1.4.4/deno/lz-string.js and compressToEncodedURIComponent appears to be in it.
The text was updated successfully, but these errors were encountered: