简体   繁体   English

IntelliJ Idea React-native不能正常工作

[英]IntelliJ Idea React-native not working properly

I have recently installed intellij idea on my PC and started react-native application. 我最近在PC上安装了intellij idea,并开始了本机应用程序。 I installed all libraries required for react native and react js. 我安装了React native和react js所需的所有库。 Also installed node js module and all plugins for this ide. 还为此节点安装了节点js模块和所有插件。 Still i am getting error below like this in import statement. 我仍然在import语句中收到下面这样的错误。

When i move to that line that shows me error like. 当我移至该行时,显示出类似的错误。 -> Install TypeScript definition for better type information. ->安装TypeScript定义以获得更好的类型信息。 But my typeScript definition are also as per required. 但我的typeScript定义也符合要求。

Also I have changed my JS to ReactJSX. 我也将我的JS更改为ReactJSX。

I have attached image over here for reference. 我已在此处附上图片以供参考。

在此处输入图片说明

You should try to create a new project using following commands 您应该尝试使用以下命令创建一个新项目

npm install -g create-react-app
create-react-app my-app

cd my-app
npm start

If you still facing error then try to use vscode editor and select react language. 如果仍然遇到错误,请尝试使用vscode编辑器并选择反应语言。 If you still face issue let me know 如果您仍然遇到问题,请告诉我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM