We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.1.10 5102a9443
MAC M2
Start an app with bun as in (https://bun.sh/)
Copy the code for fetching and rendering an HTML local file in your app like in (https://bun.sh/guides/runtime/import-html)
with { type: "text" }; shouldn't return
with { type: "text" };
Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'.ts(2823)
No response
To solve it add to
{ "compilerOptions": { "module": "preserve", } } or
{ "compilerOptions": { "module": "preserve", } }
{ "compilerOptions": { "module": "ESNext", } }
The text was updated successfully, but these errors were encountered:
Unfortunately, it's not clear there's much we can do about this without help from TypeScript upstream.
Related issue: microsoft/TypeScript#46135
Sorry, something went wrong.
No branches or pull requests
What version of Bun is running?
1.1.10 5102a9443
What platform is your computer?
MAC M2
What steps can reproduce the bug?
Start an app with bun as in (https://bun.sh/)
Copy the code for fetching and rendering an HTML local file in your app like in (https://bun.sh/guides/runtime/import-html)
What is the expected behavior?
with { type: "text" };
shouldn't return
Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'.ts(2823)
What do you see instead?
No response
Additional information
To solve it add to
tsconfig.ts
{ "compilerOptions": { "module": "preserve", } }
or
{ "compilerOptions": { "module": "ESNext", } }
The text was updated successfully, but these errors were encountered: