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

Deno bundle errors on new automatic JSX runtime #15102

Closed
ayoreis opened this issue Jul 6, 2022 · 2 comments
Closed

Deno bundle errors on new automatic JSX runtime #15102

ayoreis opened this issue Jul 6, 2022 · 2 comments
Labels
duplicate a duplicate of another issue

Comments

@ayoreis
Copy link

ayoreis commented Jul 6, 2022

I get this error; in the Deno 1.23.2.

error: Unable to output during bundling.

Caused by:
    0: load_transformed failed
    1: failed to analyze module
    2: failed to resolve https://esm.sh/react@^18.2.0?pin=v86?bundle/jsx-runtime from file:///C:/Users/ayovr/Documents/dev/deno-bundle-automatic-jsx-runtime-error-reproduction/mod.tsx
    3: Cannot resolve "https://esm.sh/react@^18.2.0?pin=v86?bundle/jsx-runtime" from "file:///C:/Users/ayovr/Documents/dev/deno-bundle-automatic-jsx-runtime-error-reproduction/mod.tsx".

I made this repository with a simple reproduction: https://github.com/ayoreis/deno-bundle-automatic-jsx-runtime-error-reproduction

@ayoreis
Copy link
Author

ayoreis commented Jul 10, 2022

Something I found which may be related is that you can't use your own file as the "jsxImportSource" option, because it will never add an extension (.js or .ts) to end. E.g. "jsxImportSource": ".." will resolve to ./jsx-runtime and not ./jsx-runtime.[jt]s

@kitsonk kitsonk added the duplicate a duplicate of another issue label Jul 10, 2022
@kitsonk
Copy link
Contributor

kitsonk commented Jul 10, 2022

Duplicate of #13389

@kitsonk kitsonk marked this as a duplicate of #13389 Jul 10, 2022
@kitsonk kitsonk closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants