summaryrefslogtreecommitdiff
path: root/tests/specs/run/npm_pkg_requires_esm_js/output.out
blob: 2cae7108b073d8cf05a708c04aca7fe3bbaa1916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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