Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Accessing non-existent property 'runMain' of module exports inside circular dependency #182

Open
mk-pmb opened this issue Nov 7, 2021 · 0 comments · May be fixed by #183
Open

Comments

@mk-pmb
Copy link

mk-pmb commented Nov 7, 2021

Thanks for packaging jslint!

$ git clone --quiet https://github.com/reid/node-jslint /tmp/node-jslint

$ cd /tmp/node-jslint

$ git branch --verbose
* master 1eefcc4 Bump handlebars from 4.4.3 to 4.7.6 (#180)

$ nodejs --version
v16.12.0

$ npm --version
7.0.7

$ npm install . &>/dev/null

$ nodejs --trace-warnings bin/jslint.js package.json
(node:3674770) Warning: Accessing non-existent property 'runMain' of module exports inside circular dependency
    at emitCircularRequireWarning (node:internal/modules/cjs/loader:707:11)
    at Object.get (node:internal/modules/cjs/loader:721:5)
    at Object.<anonymous> (/tmp/node-jslint/lib/nodelint.js:13:24)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/tmp/node-jslint/lib/main.js:1:16)

package.json is OK.

Edit: Sorry for the confusiion, the first paste had paths from an earlier attempt.

mk-pmb added a commit to mk-pmb/node-jslint that referenced this issue Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant