字段“浏览器”不包含react的有效别名配置

时间:2021-07-10 12:12:57

Im currently doing TylerMcginnes React Fundamentals course , while I am relatively new to front end I wish to learn to the current accepted style so am linting with eslint airbnb config and prettier, however since i changed from Tyler's coding a.k.a(no imports, all requires, no es6 functionality) i have got this "Field "browser" doesnt contain a valid alias configuration error and it says that my index.jsx doesnt exist in the exact location that it is??

我现在做的是TylerMcginnes反应基础课程,而我相对来说是新手,我希望学习目前被接受的风格,所以我与eslint airbnb的配置和更漂亮的linting,但是自从我改变了泰勒的编码a.k。a(没有导入,所有都需要,没有es6功能)我有这个“字段”浏览器不包含有效的别名配置错误,它说我的索引。jsx不存在于它的确切位置??

My Env is Ubuntu 16.04

我的Env是Ubuntu 16.04

Attached is my bash error screen, file tree,package.json and webpack.config anyone who can lend some assistance and put me out of my 6 hours of searching and atemping would be greatly appreciated

附件是我的bash错误屏幕、文件树、包。json和webpack。配置任何人谁可以提供一些帮助,并使我6小时的搜索和清理将非常感谢

字段“浏览器”不包含react的有效别名配置

字段“浏览器”不包含react的有效别名配置

字段“浏览器”不包含react的有效别名配置

字段“浏览器”不包含react的有效别名配置

I have looked at every other answer regarding this issue and most seem to be typo's, it would drive me crazy if I'm so blind i couldn't see it after the time I've spent looking

关于这个问题,我看了所有其他的答案,大多数似乎都是排印错误,如果我太瞎了,看了这么久也看不见的话,我会发疯的

1 个解决方案

#1


1  

Your entry value in your webpack.config.js should just be ./app/index.jsx

在webpack.config中输入值。js应该是。/app/index.jsx

#1


1  

Your entry value in your webpack.config.js should just be ./app/index.jsx

在webpack.config中输入值。js应该是。/app/index.jsx