babel-plugin-import icon indicating copy to clipboard operation
babel-plugin-import copied to clipboard

Module parse failed: Export 'Input' is not defined

Open xyunsh opened this issue 6 years ago • 3 comments

create antd.js with

import { Input } from 'antd';

export {
    Input
}

cause error Module parse failed: Export 'Input' is not defined You may need an appropriate loader to handle this file type.

xyunsh avatar Jul 15 '19 08:07 xyunsh

this problem seem like babel-plugin-import haven't handle export Declaration. use

import { Input } from 'antd';

export default {
    Input
}

ExportDefaultDeclaration can be handle

ZWkang avatar Aug 14 '19 06:08 ZWkang

+1

yhhcg avatar Mar 17 '20 02:03 yhhcg

+1

deekshithmr95 avatar Jul 14 '22 09:07 deekshithmr95