mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
794d347ec6
``` $ cat exports_error.js Object.defineProperty(exports, "__esModule", { value: true }); $ deno exports_error.js error: Uncaught (in promise) ReferenceError: exports is not defined Object.defineProperty(exports, "__esModule", { value: true }); ^ at file:///exports_error.js:1:23 info: Deno doesn't support CommonJS modules without `.cjs` extension. hint: Rewrite this module to ESM or change the file extension to `.cjs`. ``` |
||
---|---|---|
.. | ||
node_modules/foo | ||
__test__.jsonc | ||
a.js | ||
exports_error.js | ||
exports_error.out | ||
index.cjs | ||
index.out | ||
main.out | ||
main.ts | ||
module_error.js | ||
module_error.out | ||
package.json |