Search code examples
intellij-ideaphpstormwebstormwebdriver-iocodeceptjs

Unresolved functions or methods using CodeceptJS in PhpStorm


I've just followed the CodeceptJS Quickstart and opened first_test.js in the PhpStorm IDE (equivalent to WebStorm, IntelliJ, etc.).

For all the built-in functions, I'm getting "Unresolved function or method …":

enter image description here

I also don't get any autocompletion on I.

I've tried the following.

  1. Looked for a CodeceptJS plugin. Didn't find any.
  2. Enabled codeceptjs/node_modules in Settings -> Languages & Frameworks -> JavaScript -> Libraries.
  3. Set JavaScript language version to ECMAScript 6.
  4. Enabled the Node.js Core library.
  5. Restarted PhpStorm.

Solution

  • Please run 'npm install codeceptjs'.