Commit Graph

7 Commits

Author SHA1 Message Date
jamauro
0a2989cef8 Use require instead 2023-08-11 13:10:41 -05:00
jamauro
bd29b67452 Rename server.js to server.mjs 2023-08-11 12:48:27 -05:00
jamauro
0f66d30ac2 Try with a different CommonJS syntax 2023-08-11 12:37:26 -05:00
jamauro
1fb6cf232c Try without using an arrow function 2023-08-11 11:45:25 -05:00
jamauro
30b97b79de Load with dynamic import for CommonJS 2023-08-11 11:27:00 -05:00
jamauro
9ce80faec7 Import fetch
From https://github.com/node-fetch/node-fetch#loading-and-configuring-the-module:

> node-fetch from v3 is an ESM-only module - you are not able to import it with require()
2023-08-11 10:31:28 -05:00
Ben Newman
06ea07d14b Provide isomorphic implementation of WHATWG fetch() API. 2018-06-28 18:25:14 -04:00