esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Error on Typescrip webpack based setup

Open roestigraben opened this issue 2 years ago • 1 comments

Failing module

export { XMLParser } from "https://esm.sh/[email protected]";

I am doing an app to download xml data. I use typescript 4.9.5 webpack: 5.75.0 ts-loader: 9.4.2

Cannot find module 'https://esm.sh/[email protected]' or its corresponding type declarations.ts(2307) Consequently, no .js target is generated for the app to run

I don't understand. I read on your website that no npm package is available, unfortunately.

Can you help

roestigraben avatar Apr 11 '23 18:04 roestigraben

esm.sh provides types via x-typescript-type header, currently only denoland.vscode-deno supports it

ije avatar Apr 12 '23 14:04 ije