Solution "Unauthorized Function or Observable () Method" warnings using KnockoutJS in PyCharm

PyCharm (Professional Edition, v2017.1.4) does not pick up any intellisense for KnockoutJS links, such as:

enter image description here

I managed to solve this in the past when using WebStorm; from what I remember, it boiled down to the fact that in Javascript> Libraries there was a link with a JS knockout:

enter image description here

However, although I did this (including the “definitely typed” version of lib, see above), the “unresolved” warnings persist in PyCharm.

Does anyone have any bright ideas on what might help clear these warnings?


EDIT:

Additional screenshots:

Project Interpreter Settings Project Interpreter Settings

Javascript Library Settings Javascript Library Settings

Parameters RequireJS - Indicates KnockoutJS Debugging v3.4.1

RequireJS settings

ViewModel KO

Link to ViewModel KO

, js.knockout .

+4
1

, python, .

  • Settings | Project:myprj | Project Interpreter | '+'

enter image description here

  1. Type in 'knockout'

  2. Choose 'js.knockout'

  3. Click Install Package

enter image description here

.

enter image description here

, javascript, .

enter image description here

+1

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


All Articles