skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

jsdom #172

Open jacob-ebey opened 3 years ago

jacob-ebey commented 3 years ago

https://github.com/jsdom/jsdom isn't meant for the browser at all, but rather Node.js. When attempting to use this through snowpack in a file that only executes in SSR I get the following three errors when calling snowpack.startServer:

[esinstall:jsdom] polyfill-node:__http-lib/request.js
   Import "./capability" could not be resolved from file.

[esinstall:jsdom] polyfill-node:__http-lib/request.js
   Import "./response" could not be resolved from file.

[esinstall:jsdom] polyfill-node:__http-lib/request.js
   Import "./to-arraybuffer" could not be resolved from file.
drwpow commented 3 years ago

Hello @jacob-ebey. Are you loading this via Skypack? Or is this a Snowpack issue?

jacob-ebey commented 3 years ago

It was attempting to be loaded from skypack