Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not type check correctly when loading from Deno #275

Open
cowboyd opened this issue Nov 20, 2022 · 1 comment
Open

Does not type check correctly when loading from Deno #275

cowboyd opened this issue Nov 20, 2022 · 1 comment

Comments

@cowboyd
Copy link

cowboyd commented Nov 20, 2022

the following script:

import * as O from "npm:optics-ts/standalone"
O.prop('hi');

does not type check in Deno. It fails with the following error:

error: Uncaught Error: Error resolving package config for 'npm:optics-ts/standalone'.: [ERR_INVALID_PACKAGE_TARGET] Invalid "exports" target {"import":"./dist/mjs/standalone/index.js","require":"./dist/cjs/standalone/index.js"} defined for './standalone' in the package config /Users/cowboyd/Library/Caches/deno/npm/registry.npmjs.org/optics-ts/2.4.0package.json imported from file:///Users/cowboyd/Library/Caches/deno/npm/registry.npmjs.org/optics-ts/2.4.0/; target must start with "./"
@akheron
Copy link
Owner

akheron commented Jan 11, 2023

See #285 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants