Skip to content

'default' is not defined in typeof import #3006

@bezenson

Description

@bezenson

Repro

module.exports = {
  root: true,
  extends: '@react-native-community',
  parser: '@typescript-eslint/parser',
  plugins: ['@typescript-eslint'],
};
export type RootAction = ActionType<typeof import('./src/store/actions').default>;
export type AppState = ReturnType<typeof import('./src/store/reducers').default>;

Expected Result

No errors here like it was before

Actual Result

/.../types.d.ts
  4:74  error  'default' is not defined  no-undef
  5:73  error  'default' is not defined  no-undef

Additional Info

In this files (actions and reducers) I have default export

const appReducer = combineReducers({
// ...
});

export default appReducer;

Versions

package version
@typescript-eslint/parser 4.14.2
TypeScript 4.1.3
ESLint 7.19.0
node 12.18.4

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpackage: scope-managerIssues related to @typescript-eslint/scope-manager

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy