PhpStorm: Unresolved method or function setOutputPath()
See original GitHub issueThanks for making Encore.
I’ve done the following:
- Installed Encore as documented.
- Enabled the Node.js core library in PhpStorm.
- Restarted PhpStorm just to be sure.
In webpack.config.js
, PhpStorm is showing the warning “Unresolved method or function setOutputPath()”:
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?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
phpstorm unresolved function or method $() - Stack Overflow
I have the following problem: phpstorm do not recognize jquery methods and here and there I see. enter image description here. Unresolved function...
Read more >"Unresolved function or method"
I have a node.js project that includes the node-imap module. That module uses code like this to inherit from events.EventEmitter:
Read more >src/test/java/com/android/tools/r8/R8RunArtTestsTest.java - r8 - Git ...
Test intentionally asserts absence of default interface method in a class. .put("048-reflect-v8", AndroidApiLevel.N.getLevel()).
Read more >Index (Windup 6.1.0.Final Javadoc API) - GitHub Pages
An abstract operation providing some default methods useful for the DecompilerOperations. AbstractDecompilerOperation() - Constructor for class org.jboss.windup ...
Read more >availables.xml
1.10 - Fix warning filter for testSomething() methods that are in test. ... phpStorm.phpattention Method calls and some common php functions may return...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Do it! I’m sure those steps are still valid - so this is just a chore we need to get done 😃
Doing something like that seems to actually work:
So we’d need to:
const
to aclass
(I tried to keep theconst
but for some reason that implied adding a@property
tag for each method of the API)@return {exports}
/@returns {exports}
by@returns {Encore}
@type
tag to themodule.exports
and instantiate the class