frontend-maven-plugin icon indicating copy to clipboard operation
frontend-maven-plugin copied to clipboard

Yarn proxy issue

Open tschaka1904 opened this issue 7 years ago • 3 comments

Do you want to request a feature or report a bug? Bug

What is the current behavior? Using install-node-and-yarn and yarnInheritsProxyConfigFromMaven and performing a eslint ./src/main/webapp/*/*.js leads to Invalid option '--https-proxy' - perhaps you meant '--parser'?

If the current behavior is a bug, please provide the steps to reproduce. Using this setup: screen shot 2018-02-23 at 12 20 57

What is the expected behavior? I can in the: screen shot 2018-02-23 at 12 22 30

add a <yarnInheritsProxyConfigFromMaven>false<yarnInheritsProxyConfigFromMaven/>, but this feels quite redundant. Maybe you should just be able to define where you want to use the proxy.

Please mention your frontend-maven-plugin and operating system version. Mac OS High Sierra 10.13.3

tschaka1904 avatar Feb 23 '18 11:02 tschaka1904

Managed to work around this by merging the test and lint goals together, it seems the plugin just appends the proxy args at the end. From package.json: "check": "eslint src --format table --ext .js,.jsx,.ts,.tsx --fix && react-scripts test --watchAll=false --passWithNoTests",

And in maven: <execution> <id>yarn check</id> <goals> <goal>yarn</goal> </goals> <phase>test</phase> <configuration> <arguments>run check</arguments> <environmentVariables> <CI>true</CI> </environmentVariables> </configuration> </execution>

andonu avatar Apr 13 '21 11:04 andonu

It's resolved in version 1.12.0

mshepel avatar Sep 08 '21 13:09 mshepel

I stumbled upon this today and we are using 1.12.0. So it is still an issue.

mvrueden avatar Oct 11 '22 14:10 mvrueden