Skip to content

PhpStorm: Unresolved method or function setOutputPath() #151

Closed
@yhoiseth

Description

@yhoiseth

Thanks for making Encore.

I've done the following:

  1. Installed Encore as documented.
  2. Enabled the Node.js core library in PhpStorm.
  3. Restarted PhpStorm just to be sure.

In webpack.config.js, PhpStorm is showing the warning "Unresolved method or function setOutputPath()":
screen shot 2017-09-03 at 12 39 52

I've verified that setOutputPath() exists in node_modules/@symfony/webpack-encore/index.js.

How can I tell PhpStorm where to find the Encore functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBug Fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions