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

typedoc v0.22 breaks with "Package subpath './dist/lib/converter/plugins' is not defined by exports" #249

Closed
B4nan opened this issue Sep 11, 2021 · 8 comments

Comments

@B4nan
Copy link

B4nan commented Sep 11, 2021

There are some breaking changes in that version, so probably caused by that.

https://github.com/TypeStrong/typedoc/releases/tag/v0.22.0
https://github.com/mikro-orm/mikro-orm/runs/3572094787

[en] Creating an optimized production build...
Unable to build website for locale "en".
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/lib/converter/plugins' is not defined by "exports" in /home/runner/work/mikro-orm/mikro-orm/docs/node_modules/typedoc/package.json
    at new NodeError (node:internal/errors:329:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:337:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:562:3)
    at resolveExports (node:internal/modules/cjs/loader:473:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:513:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:910:27)
    at Function.Module._resolveFilename (/home/runner/work/mikro-orm/mikro-orm/docs/node_modules/module-alias/index.js:49:29)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/home/runner/work/mikro-orm/mikro-orm/docs/node_modules/typedoc-plugin-markdown/dist/theme.js:13:19)
    at Module._compile (node:internal/modules/cjs/loader:1092:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:996:19) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
error Command failed with exit code 1.
@tgreyuk
Copy link
Member

tgreyuk commented Sep 11, 2021

Thanks @B4nan - looking to release a compatible version as soon as possible.

@sambacha
Copy link

thanks @tgreyuk can confirm as well

@bennycode
Copy link

I also have this issue:

typedoc src/index.ts
Error: The plugin typedoc-plugin-markdown could not be loaded.
Error: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/lib/converter/plugins' is not defined by "exports" in /Users/bennycode/coinbase-pro-node/node_modules/typedoc/package.json
    at new NodeError (node:internal/errors:371:5)

I am using an Apple M1 MacBook with Node.js v16.8.0. Problem showed up when upgrading typedoc from 0.21.9 to 0.22.0.

VitorLuizC added a commit to VitorLuizC/typescript-library-boilerplate that referenced this issue Sep 11, 2021
Except by typedoc-plugin-markdown because of typedoc2md/typedoc-plugin-markdown#249.
@tgreyuk
Copy link
Member

tgreyuk commented Sep 15, 2021

typedoc-plugin-markdown@3.11.0 should hopefully be compatible

@B4nan
Copy link
Author

B4nan commented Sep 15, 2021

Yop, works fine, thanks!

@B4nan B4nan closed this as completed Sep 15, 2021
@bennycode
Copy link

With v3.11.0 I am getting this error now:

Info: Loaded plugin typedoc-plugin-markdown
Error: Tried to set an option (disableOutputCheck) that was not declared.

@sstone1
Copy link

sstone1 commented Sep 15, 2021

@tgreyuk @bennycode similar issue here, I now get: Error: Tried to set an option (packages) that was not declared.

@tgreyuk
Copy link
Member

tgreyuk commented Sep 15, 2021

@bennycode @sstone1 this is due to breaking changes in typedoc 0.22. please see https://github.com/TypeStrong/typedoc/releases/tag/v0.22.0

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

No branches or pull requests

5 participants