Skip to content

Strange code analyzing of webpack.config.js in PhpStorm #815

Closed
@yura3d

Description

@yura3d

Hi!

I have fresh installation of webpack-encore-bundle and it works fine, but I see some strange things when I open webpack.config.js in PhpStorm.

Some methods of Encore object (like isRuntimeEnvironmentConfigured(), configureRuntimeEnvironment(), setOutputPath()) are highlighted as unresolved, but some others (setPublicPath(), addEntry()) are resolved correctly:

image

The strangest thing is that if I swap setOutputPath() and setPublicPath(), so after that setPublicPath() becomes unresolved (was resolved) and setOutputPath() is resolved (was unresolved):

image

Windows 10 x64 1909
PhpStorm 2020.2 (JavaScript version is set to ECMAScript 6+ in settings)
Node.JS 14.7.0
Installed devDependencies:

"@symfony/webpack-encore": "^0.30.0",
"core-js": "^3.0.0",
"regenerator-runtime": "^0.13.2",
"webpack-notifier": "^1.6.0"

This issue is very similar to #151 and #236, but I didn't find the solution there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions