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

Node 16+ tests fail to run: Error: Cannot find module './reports/base' #9

Open
jmealo opened this issue Jan 16, 2024 · 0 comments · May be fixed by #10
Open

Node 16+ tests fail to run: Error: Cannot find module './reports/base' #9

jmealo opened this issue Jan 16, 2024 · 0 comments · May be fixed by #10

Comments

@jmealo
Copy link

jmealo commented Jan 16, 2024

npm test fails to run on Node 16+ (works on 14 and below).

mysql82 + node 16

> @vlasky/[email protected] test
> tap --bail --no-coverage --jobs=1 test/*.js

Error: Cannot find module './reports/base'
Require stack:
- /build/node_modules/jackspeak/noop.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at resolveFileName (/build/node_modules/tap/node_modules/resolve-from/index.js:17:39)
    at resolveFrom (/build/node_modules/tap/node_modules/resolve-from/index.js:31:9)
    at module.exports (/build/node_modules/tap/node_modules/resolve-from/index.js:34:41)
    at importJSX (/build/node_modules/tap/node_modules/import-jsx/index.js:24:21)
    at module.exports (/build/node_modules/tap/node_modules/treport/lib/index.js:13:18)
    at exports.makeReporter (/build/node_modules/tap/bin/run.js:422:23)
    at runTests (/build/node_modules/tap/bin/run.js:744:3)
    at mainAsync (/build/node_modules/tap/bin/run.js:244:5)
    at main (/build/node_modules/tap/bin/run.js:127:3) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/build/node_modules/jackspeak/noop.js' ]
}
TAP version 13
1..0
# time=0.798ms
npm notice 
npm notice New major version of npm available! 8.19.4 -> 10.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0
npm notice Run npm install -g [email protected] to update!
npm notice 
mysql82 + node 18

> @vlasky/[email protected] test
> tap --bail --no-coverage --jobs=1 test/*.js

Error: Cannot find module './reports/base'
Require stack:
- /build/node_modules/jackspeak/noop.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
    at resolveFileName (/build/node_modules/tap/node_modules/resolve-from/index.js:17:39)
    at resolveFrom (/build/node_modules/tap/node_modules/resolve-from/index.js:31:9)
    at module.exports (/build/node_modules/tap/node_modules/resolve-from/index.js:34:41)
    at importJSX (/build/node_modules/tap/node_modules/import-jsx/index.js:24:21)
    at module.exports (/build/node_modules/tap/node_modules/treport/lib/index.js:13:18)
    at exports.makeReporter (/build/node_modules/tap/bin/run.js:422:23)
    at runTests (/build/node_modules/tap/bin/run.js:744:3)
    at mainAsync (/build/node_modules/tap/bin/run.js:244:5)
    at main (/build/node_modules/tap/bin/run.js:127:3) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/build/node_modules/jackspeak/noop.js' ]
}
TAP version 13
1..0
# time=0.807ms
npm notice 
npm notice New minor version of npm available! 10.2.3 -> 10.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0
npm notice Run npm install -g [email protected] to update!
npm notice 
mysql82 + node 20

> @vlasky/[email protected] test
> tap --bail --no-coverage --jobs=1 test/*.js

Error: Cannot find module './reports/base'
Require stack:
- /build/node_modules/jackspeak/noop.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
    at resolveFileName (/build/node_modules/tap/node_modules/resolve-from/index.js:17:39)
    at resolveFrom (/build/node_modules/tap/node_modules/resolve-from/index.js:31:9)
    at module.exports (/build/node_modules/tap/node_modules/resolve-from/index.js:34:41)
    at importJSX (/build/node_modules/tap/node_modules/import-jsx/index.js:24:21)
    at module.exports (/build/node_modules/tap/node_modules/treport/lib/index.js:13:18)
    at exports.makeReporter (/build/node_modules/tap/bin/run.js:422:23)
    at runTests (/build/node_modules/tap/bin/run.js:744:3)
    at mainAsync (/build/node_modules/tap/bin/run.js:244:5)
    at main (/build/node_modules/tap/bin/run.js:127:3) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/build/node_modules/jackspeak/noop.js' ]
}
TAP version 13
1..0
# time=0.647ms
npm notice 
npm notice New minor version of npm available! 10.2.4 -> 10.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0
npm notice Run npm install -g [email protected] to update!
npm notice 
@jmealo jmealo linked a pull request Jan 17, 2024 that will close this issue
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