1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tests/specs/run/npm_pkg_requires_esm_js/output.out

13 lines
491 B
Text
Raw Normal View History

file:///[WILDLINE]/file.js
error: Uncaught (in promise) ReferenceError: require is not defined
console.log(require);
^
at [WILDCARD]
info: Deno supports CommonJS modules in .cjs files, or when the closest
package.json has a "type": "commonjs" option.
hint: Rewrite this module to ESM,
or change the file extension to .cjs,
or add package.json next to the file with "type": "commonjs" option.
docs: https://docs.deno.com/go/commonjs