support for the experimental 'jsx' isn't currently enabled

后端 未结 3 1383
借酒劲吻你
借酒劲吻你 2021-02-12 23:44

So I have endlessly searched the web to fix this issue.

"support for the experimental \'jsx\' isn\'t currently enabled...
Add @babel/preset-react to the \'pr         


        
3条回答
  •  隐瞒了意图╮
    2021-02-13 00:24

    Are you running this inside of a node_modules folder? If so you need to change

    exclude: [/node_modules/],
    

    so it doesn't exclude your project.

    It should become something along the lines of

    exclude: [/node_modules/ &&
            !/node_modules\/(project_name)/],
    

    But with correct regex syntax and change project_name to the folder name.

提交回复
热议问题