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

Cannot find module 'none' #1598

Closed
LeviticusMB opened this issue Jun 14, 2021 · 2 comments · Fixed by redpeacock78/cie.js#6
Closed

Cannot find module 'none' #1598

LeviticusMB opened this issue Jun 14, 2021 · 2 comments · Fixed by redpeacock78/cie.js#6
Labels
bug Functionality does not match expectation

Comments

@LeviticusMB
Copy link

Search terms

typedoc --plugin none

Expected Behavior

No crash.

Actual Behavior

Error: Error: Cannot find module 'none'

Steps to reproduce the bug

$ npm add typedoc@beta typescript
$ npx typedoc --plugin none
Error: The plugin none could not be loaded.
Error: Error: Cannot find module 'none'
Require stack:
- /Users/leviticus/cp/node_modules/typedoc/dist/lib/utils/plugins.js
- /Users/leviticus/cp/node_modules/typedoc/dist/lib/utils/index.js
- /Users/leviticus/cp/node_modules/typedoc/dist/lib/models/reflections/project.js
- /Users/leviticus/cp/node_modules/typedoc/dist/lib/models/reflections/index.js
- /Users/leviticus/cp/node_modules/typedoc/dist/lib/models/index.js
- /Users/leviticus/cp/node_modules/typedoc/dist/lib/converter/context.js
- /Users/leviticus/cp/node_modules/typedoc/dist/lib/converter/index.js
- /Users/leviticus/cp/node_modules/typedoc/dist/lib/application.js
- /Users/leviticus/cp/node_modules/typedoc/dist/index.js
- /Users/leviticus/cp/node_modules/typedoc/bin/typedoc
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.Module._load (internal/modules/cjs/loader.js:730:27)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.loadPlugins (/Users/leviticus/cp/node_modules/typedoc/dist/lib/utils/plugins.js:10:30)
    at Application.bootstrap (/Users/leviticus/cp/node_modules/typedoc/dist/lib/application.js:156:17)
    at Object.<anonymous> (/Users/leviticus/cp/node_modules/typedoc/bin/typedoc:25:5)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)

Environment

{
  "dependencies": {
    "typedoc": "^0.21.0-beta.2",
    "typescript": "^4.3.2"
  }
}
@LeviticusMB LeviticusMB added the bug Functionality does not match expectation label Jun 14, 2021
@Gerrit0 Gerrit0 added this to To do in Version 0.21 via automation Jun 15, 2021
@Gerrit0 Gerrit0 moved this from To do to In progress in Version 0.21 Jun 15, 2021
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jun 15, 2021

Thanks! Should have known I'd break something with that refactor..

@mikaello
Copy link

This same error started happening at v0.24.0 again (previous version, v0.23.28 works). I guess this is intentional since the behaviour of plugin changed in v0.24.0 (even if it is not explicitly mentioned in the release docs that none is removed):

  • TypeDoc will no longer automatically load plugins from node_modules. Specify the --plugin option to indicate which modules should be loaded.

mikaello added a commit to mikaello/norwegian-national-id-validator that referenced this issue Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants