Skip to content

feat: support cjs and esm both #981

feat: support cjs and esm both

feat: support cjs and esm both #981

Triggered via pull request June 16, 2024 05:07
@fengmk2fengmk2
synchronize #265
next
Status Failure
Total duration 2m 5s
Artifacts

nodejs.yml

on: pull_request
Matrix: Node.js / Test
Fit to window
Zoom out
Zoom in

Annotations

120 errors and 24 warnings
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. '/Users/runner/work/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18.19.0): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. '/home/runner/work/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18.19.0): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. '/home/runner/work/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 20): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. '/home/runner/work/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 18): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. '/home/runner/work/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (ubuntu-latest, 22): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. '/Users/runner/work/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (macos-latest, 18): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 18): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. '/Users/runner/work/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (macos-latest, 22): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 22): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. '/Users/runner/work/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (macos-latest, 20): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (macos-latest, 20): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. 'D:/a/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (windows-latest, 22): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 22): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. 'D:/a/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18.19.0): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. 'D:/a/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (windows-latest, 20): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 20): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L10
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L11
Could not find a declaration file for module 'await-event'. 'D:/a/egg-core/egg-core/node_modules/await-event/index.js' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L12
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '../src/index.js'?
Node.js / Test (windows-latest, 18): test/egg.test.ts#L76
'err' is of type 'unknown'.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L89
Variable 'app' implicitly has type 'any' in some locations where its type cannot be determined.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L97
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L100
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L104
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L108
Variable 'app' implicitly has an 'any' type.
Node.js / Test (windows-latest, 18): test/egg.test.ts#L112
Variable 'app' implicitly has an 'any' type.