Open rasoolghafari opened 4 years ago
I guess the node version used for the frontend plugin (6.14.4) differs from your local installed one and is too old to support the async keyword. As stated here https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Statements/async_function the first Node.js version supporting it is 7.6.0.
@neoxpert, you can see nodejs and npm version here:
@rasoolghafari These are the version available within the context of your local environment. But the frontend plugin downloads and installs its own Node.js environment to run the configured goals in.
If the plugin configuration of the pom.xml is still up to date it states that Node.js version 6.14.4 should be used.
<configuration>
<installDirectory>target</installDirectory>
<nodeVersion>v6.14.4</nodeVersion>
</configuration>
As this is equal to your local NPM version: Might you have just mixed those config entries / versions up? If you want the frontend plugin to download and use the same versions as you do on your environment the config should look like this:
<configuration>
<installDirectory>target</installDirectory>
<nodeVersion>v12.16.3</nodeVersion>
<npmVersion>v6.14.4</npmVersion>
</configuration>
I have this task in gulpfile.js:
when I run this task with
gulp sass
command, everything is ok, but with frontend-maven-plugin i get this errors:This is build section of pom.xml: