Skip to content

ERROR import {sync as globSync} from 'fast-glob'; #238

Closed
@GollyJer

Description

@GollyJer

After installing in my project ESLint is now throwing this error.

I haven't ever had anything like this with plugins.
How do I troubleshoot? Thanks.

Uncaught exception received.
file:///Users/jeremy/dev/__active/eslint-plugin-awesome-labs/node_modules/eslint-import-resolver-typescript/lib/index.js:6
import { sync as globSync } from 'fast-glob';
         ^^^^
SyntaxError: Named export 'sync' not found. The requested module 'fast-glob' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'fast-glob';
const { sync: globSync } = pkg;

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