You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
I have read the documentation and cannot find an answer.
Describe the bug
When running ESLint, I get this error from eslint-plugin-import in the file that I import @mdx-editor/editor:
ESLint: 8.57.0
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib' is not defined by "exports" in /Users/name/frontend/node_modules/mdast-util-from-markdown/package.json
Occurred while linting /Users/name/frontend/src/ui/markdown/MarkdownEditor.tsx:1
Rule: "import/namespace"
at exportsNotFound (node:internal/modules/esm/resolve:303:10)
at packageExportsResolve (node:internal/modules/esm/resolve:650:9)
at resolveExports (node:internal/modules/cjs/loader:591:36)
at Module._findPath (node:internal/modules/cjs/loader:668:31)
at findModulePath (/Users/michaelhsu/vanna-portal/frontend/node_modules/eslint-import-resolver-alias/index.js:99:27)
at exports.resolve (/Users/michaelhsu/vanna-portal/frontend/node_modules/eslint-import-resolver-alias/index.js:75:10)
at withResolver (/Users/michaelhsu/vanna-portal/frontend/node_modules/eslint-module-utils/resolve.js:121:23)
at fullResolve (/Users/michaelhsu/vanna-portal/frontend/node_modules/eslint-module-utils/resolve.js:142:22)
at Function.relative (/Users/michaelhsu/vanna-portal/frontend/node_modules/eslint-module-utils/resolve.js:158:10)
at remotePath (/Users/michaelhsu/vanna-portal/frontend/node_modules/eslint-plugin-import/lib/ExportMap.js:811:381)
I've ignored this error by adding the code snippet below in my .eslintrc.yml:
If you want to ask for support or request features, sponsor the project and contact me over email.
Describe the bug
When running ESLint, I get this error from
eslint-plugin-import
in the file that I import@mdx-editor/editor
:I've ignored this error by adding the code snippet below in my
.eslintrc.yml
:I'd like an actual way to fix this though, if anyone has any ideas, please let me know!
package.json
The text was updated successfully, but these errors were encountered: