WebStorm 2016.3 + Electron: unresolved function or method

I play with Electron and WebStorm as part of the preparation of the project, and I am struggling with various problems. Therefore, I want to start with a simple one, creating very simple things and working in my path.

So, I have a very simple project setup in WebStorm, and my first Electron application is working. But WebStorm continues to say that it cannot resolve function names.

enter image description here

Electronic and electronic pre-added functions package.jsonand Node.js are included. Therefore, it is require('electron')recognized correctly.

I saw a JetBrains blog entry on how to get started with Electron in WebStorm, and found another similar answer here on StackOverflow.

JetBrains Blog Entry

stack overflow

, github-electron JavaScript Communitie-. , github-, .

enter image description here

enter image description here

, : WebStorm JS ES6, "" ?

+4
2

, , , .

:

  • WebStorm / Frameworks/TypeScript
  • , TypeScript .

enter image description here

  1. WebStorm ( ) TypeScript NPM:

    enter image description here

    npm install @types/electron

    --save/--save-dev, WebStorm .

    enter image description here

    node_modules, .

    enter image description here

    . WebStorm .

    enter image description here

    , . , . , JavaScript WebStorm.

, !

Martin

+7

. github- .

0

Source: https://habr.com/ru/post/1662321/


All Articles