Skip to content

import/no-unresolved unable to resolve @atlaskit/pragmatic-drag-and-drop’s nested imports after upgrading 3.8.7 → 4.2.4 #409

Closed
unrs/unrs-resolver
#75
@acusti

Description

@acusti

i am using @atlassian/pragmatic-drag-and-drop, which exposes a number of nested import targets. when i upgrade eslint-import-resolver-typescript from 3.8.7 to 4.2.4, i get errors when trying to import from any of those targets:

Error:    1:25  error  Unable to resolve path to module '@atlaskit/pragmatic-drag-and-drop/combine'            import/no-unresolved
Error:    5:8   error  Unable to resolve path to module '@atlaskit/pragmatic-drag-and-drop/external/adapter'   import/no-unresolved
Error:    9:8   error  Unable to resolve path to module '@atlaskit/pragmatic-drag-and-drop/external/file'      import/no-unresolved
Error:   10:34  error  Unable to resolve path to module '@atlaskit/pragmatic-drag-and-drop/prevent-unhandled'  import/no-unresolved

here are the lines in question:

import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
import {
    dropTargetForExternal,
    monitorForExternal,
} from '@atlaskit/pragmatic-drag-and-drop/external/adapter';
import {
    containsFiles,
    getFiles,
} from '@atlaskit/pragmatic-drag-and-drop/external/file';
import { preventUnhandled } from '@atlaskit/pragmatic-drag-and-drop/prevent-unhandled';

using v3.8.7, there are no linting errors. i am using v1.5.2 of @atlaskit/pragmatic-drag-and-drop. my eslint.config.js file configures the import/resolver like so:

            'import/resolver': { typescript: { alwaysTryTypes: true } },

and i am using eslint v9.23.0

let me know if there’s anything else that would be useful for me to provide, and thanks for this excellent project! i had a lot of struggles with eslint and typescript and the import/* eslint rules before finding it and getting it configured correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions