npm scripts are not detected in npm-window anymore

I updated Webstorm to 2021.1 last FridayFrom that moment on the npm-windows does not show the script definition of the projects package.json anymore.

When I do open the run configuration it also shows "No npm script"
However, when I do press "Run" and then "Continue Anyway" the script is executed correctly!

 

1 comment
Comment actions Permalink

looks as if package.json is treated as plain text, not as JSON. Please check the registered patterns in Settings | Editor | File types, Text and Auto-detect file type by content file types - can you see package.json pattern there? Also, what file type is *.json pattern assigned to? Make sure that the latter is listed as either JSON or JSON5 type

0

Please sign in to leave a comment.