-
-
Save joyeecheung/f691e98e0994186f14417237ccb51f53 to your computer and use it in GitHub Desktop.
Test require esm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ test-require-esm git:(main) ✗ MODULE_TYPE=dual NODE_NO_WARNINGS=1 node try2.cjs | |
importing from @storybook/api is deprecated and will be removed in 8.0, please import manager related modules from @storybook/manager-api | |
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. | |
WARN Exports from @storybook/cli are removed. Please import from @storybook/core-common instead. | |
Tried 379 dual packages, failed 16 | |
{ | |
ERR_PACKAGE_PATH_NOT_EXPORTED: [ '@babel/runtime', '@babel/runtime-corejs3' ], | |
ERR_REQUIRE_ESM: [ | |
'@octokit/auth-token', | |
'@octokit/core', | |
'@octokit/endpoint', | |
'@octokit/graphql', | |
'@octokit/plugin-paginate-rest', | |
'@octokit/plugin-request-log', | |
'@octokit/plugin-rest-endpoint-methods', | |
'@octokit/request', | |
'@octokit/request-error', | |
'@octokit/rest' | |
], | |
ReferenceError: [ '@testing-library/jest-dom' ], | |
MODULE_NOT_FOUND: [ 'file-system-cache', 'unfetch' ], | |
Error: [ 'vitest' ] | |
} | |
Retried | |
{} | |
363 can be required | |
➜ test-require-esm git:(main) ✗ MODULE_TYPE=dual NODE_NO_WARNINGS=1 ../node/out/Release/node --experimental-require-module try2.cjs | |
importing from @storybook/api is deprecated and will be removed in 8.0, please import manager related modules from @storybook/manager-api | |
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. | |
WARN Exports from @storybook/cli are removed. Please import from @storybook/core-common instead. | |
Tried 379 dual packages, failed 6 | |
{ | |
ERR_PACKAGE_PATH_NOT_EXPORTED: [ '@babel/runtime', '@babel/runtime-corejs3' ], | |
ReferenceError: [ '@testing-library/jest-dom' ], | |
MODULE_NOT_FOUND: [ 'file-system-cache', 'unfetch' ], | |
Error: [ 'vitest' ] | |
} | |
Retried | |
{} | |
373 can be required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ test-require-esm git:(main) ✗ MODULE_TYPE=esm NODE_NO_WARNINGS=1 node try2.cjs | |
Tried 662 esm packages, failed 559 | |
{ | |
ERR_REQUIRE_ESM: [ | |
'@algolia/requester-browser-xhr', | |
'@commitlint/config-conventional', | |
'@commitlint/config-validator', | |
'@commitlint/ensure', | |
'@commitlint/execute-rule', | |
'@commitlint/format', | |
'@commitlint/is-ignored', | |
'@commitlint/lint', | |
'@commitlint/load', | |
'@commitlint/message', | |
'@commitlint/parse', | |
'@commitlint/read', | |
'@commitlint/resolve-extends', | |
'@commitlint/rules', | |
'@commitlint/to-lines', | |
'@commitlint/top-level', | |
'@commitlint/types', | |
'@contenthook/browser', | |
'@contenthook/cli', | |
'@contenthook/node', | |
'@lit-labs/ssr-dom-shim', | |
'@lit/reactive-element', | |
'@mapbox/point-geometry', | |
'@mapbox/tiny-sdf', | |
'@mdx-js/mdx', | |
'@mdx-js/react', | |
'@oclif/plugin-help', | |
'@react-dnd/asap', | |
'@react-dnd/invariant', | |
'@react-dnd/shallowequal', | |
'@semantic-release/commit-analyzer', | |
'@semantic-release/error', | |
'@semantic-release/github', | |
'@semantic-release/release-notes-generator', | |
'@sindresorhus/is', | |
'@sindresorhus/merge-streams', | |
'@szmarczak/http-timer', | |
'@tootallnate/once', | |
'@vitest/coverage-v8', | |
'@vitest/expect', | |
'@vitest/pretty-format', | |
'@vitest/runner', | |
'@vitest/snapshot', | |
'@vitest/spy', | |
'@vitest/utils', | |
'@wdio/logger', | |
'aggregate-error', | |
'ansi-escapes', | |
'ansi-regex', | |
'ansi-styles', | |
'append-field', | |
'array-differ', | |
'array-union', | |
'array-uniq', | |
'arrify', | |
'assertion-error', | |
'auto-bind', | |
'bail', | |
'balanced-match', | |
'before-after-hook', | |
'bin-version', | |
'bin-version-check', | |
'binary-extensions', | |
'boxen', | |
'brace-expansion', | |
'builtin-modules', | |
'bundle-name', | |
'cacheable-lookup', | |
'cacheable-request', | |
'caller-callsite', | |
'caller-path', | |
'callsites', | |
'camelcase', | |
'camelcase-keys', | |
'capture-stack-trace', | |
'ccount', | |
'chai', | |
'chalk', | |
'chalk-template', | |
'change-case', | |
'char-regex', | |
'character-entities', | |
'character-entities-html4', | |
'character-entities-legacy', | |
'character-reference-invalid', | |
'check-error', | |
'chrome-launcher', | |
'clean-stack', | |
'cli-boxes', | |
'cli-cursor', | |
'cli-spinners', | |
'cli-truncate', | |
'clipboardy', | |
'clone-regexp', | |
'clone-response', | |
'collapse-white-space', | |
'color-name', | |
'comma-separated-tokens', | |
'configstore', | |
'contenthook', | |
... 442 more items | |
], | |
ERR_PACKAGE_PATH_NOT_EXPORTED: [ | |
'@wdio/config', | |
'@wdio/protocols', | |
'@wdio/repl', | |
'@wdio/types', | |
'@wdio/utils', | |
'conventional-changelog-preset-loader', | |
'conventional-changelog-writer', | |
'conventional-commits-filter', | |
'conventional-commits-parser', | |
'conventional-recommended-bump', | |
'estree-walker', | |
'extract-files', | |
'file-type', | |
'graphql-request', | |
'is-reference', | |
'tsconfck', | |
'unicorn-magic' | |
] | |
} | |
Retried | |
{} | |
103 can be required | |
➜ test-require-esm git:(main) ✗ MODULE_TYPE=esm NODE_NO_WARNINGS=1 ../node/out/Release/node --experimental-require-module try2.cjs | |
ContentHook: No command provided. Use 'help' for available commands. | |
Tried 662 esm packages, failed 24 | |
{ | |
ERR_PACKAGE_PATH_NOT_EXPORTED: [ | |
'@wdio/config', | |
'@wdio/protocols', | |
'@wdio/repl', | |
'@wdio/types', | |
'@wdio/utils', | |
'conventional-changelog-preset-loader', | |
'conventional-changelog-writer', | |
'conventional-commits-filter', | |
'conventional-commits-parser', | |
'conventional-recommended-bump', | |
'estree-walker', | |
'extract-files', | |
'file-type', | |
'graphql-request', | |
'is-reference', | |
'tsconfck', | |
'unicorn-magic' | |
], | |
ERR_REQUIRE_ASYNC_MODULE: [ | |
'fetch-blob', | |
'hasha', | |
'prettier-plugin-tailwindcss', | |
'temp-dir', | |
'tempfile', | |
'tempy' | |
], | |
ERR_REQUIRE_CYCLE_MODULE: [] | |
} | |
Retried | |
{ 'unique-string': 'ERR_REQUIRE_CYCLE_MODULE => success' } | |
639 can be required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ test-require-esm git:(main) ✗ MODULE_TYPE=faux NODE_NO_WARNINGS=1 node --trace-exit --experimental-require-module --stack-trace-limit=100 try2.cjs | |
Tried 526 faux packages, failed 1 | |
{ TypeError: [ 'blob' ] } | |
Retried | |
{} | |
525 can be required | |
➜ test-require-esm git:(main) ✗ MODULE_TYPE=faux NODE_NO_WARNINGS=1 ../node/out/Release/node --trace-exit --experimental-require-module --stack-trace-limit=100 try2.cjs | |
Tried 526 faux packages, failed 1 | |
{ TypeError: [ 'blob' ] } | |
Retried | |
{} | |
525 can be required |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment