Skip to content

Problem with default export after update to 2.1.0 #653

Closed
@adascal

Description

Hi, after updating from version 2.0.1 to 2.1.0 I start getting error for code like:

export default from './Map.jsx';

Stack trace:

Node must be provided when reporting error if location is not provided
AssertionError: Node must be provided when reporting error if location is not provided
at EventEmitter.module.exports.api.report (/node_modules/eslint/lib/eslint.js:970:20)
at RuleContext.report (/node_modules/eslint/lib/rule-context.js:144:21)
at EventEmitter.Program:exit (/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js:69:19)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at NodeEventGenerator.leaveNode (/node_modules/eslint/lib/util/node-event-generator.js:49:22)
at CodePathAnalyzer.leaveNode (/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:628:23)
at CommentEventGenerator.leaveNode (/node_modules/eslint/lib/util/comment-event-generator.js:110:23)
at Controller.leave (/node_modules/eslint/lib/eslint.js:930:36)
at Controller.__execute (/node_modules/estraverse/estraverse.js:397:31)

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