You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file."

前端 未结 5 1885
独厮守ぢ
独厮守ぢ 2021-02-05 11:02

I\'m setting up webpack to my react project using yarn and this error appears:

ERROR in ./src/app.js 67:6 Module parse failed: Unexpected token (67:6) Y

5条回答
  •  温柔的废话
    2021-02-05 11:41

    This error happened to me simply because the file was placed in the parent folder of the project (i.e. outside the project's folder).

    Moving the file to the appropriate folder fixed it.

提交回复
热议问题