SyntaxError: Cannot use import statement outside a module React JS Antd

后端 未结 0 903
谎友^
谎友^ 2021-01-05 01:32

For bundle size optimization instead of getting components from the lib folder, I am importing it from the es folder.

Example:

import Modal from \'antd         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题