Closed art-santos closed 3 weeks ago
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", } }
Unfortunately, it's not clear there's much we can do about this without help from TypeScript upstream.
Related issue: https://github.com/microsoft/TypeScript/issues/46135
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 returnImport 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", } }