Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in plugin 'gulp-babel' while running yarn run build-server #5

Closed
couaky opened this issue Feb 10, 2020 · 3 comments
Closed

Error in plugin 'gulp-babel' while running yarn run build-server #5

couaky opened this issue Feb 10, 2020 · 3 comments

Comments

@couaky
Copy link

couaky commented Feb 10, 2020

Hi !
I got this error while trying to build the project:

>yarn --version
1.22.0
>yarn run build-server
yarn run v1.22.0
$ gulp --gulpfile ./gulpfile.js build
[11:46:42] Using gulpfile ~/work/webcodesk-srv/gulpfile.js
[11:46:42] Starting 'build'...
[11:46:42] Starting 'clean'...
[11:46:42] Finished 'clean' after 5.87 ms
[11:46:42] Starting 'commons'...
[11:46:43] 'commons' errored after 964 ms
[11:46:43] Error in plugin "gulp-babel"
Message:
    The number of constructor arguments in the derived class t must be >= than the number of constructor arguments of its base class.
[11:46:43] 'build' errored after 971 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

did you already face this problem ?

Thanks.

@couaky couaky changed the title Error in plugin 'gulp-bable' while running yarn run build-server Error in plugin 'gulp-babel' while running yarn run build-server Feb 10, 2020
@couaky
Copy link
Author

couaky commented Feb 10, 2020

Issue seems to come from gulp-javascript-obfuscator plugin.
See: javascript-obfuscator/gulp-javascript-obfuscator#28.

I'm using node v13.8.0

@couaky
Copy link
Author

couaky commented Feb 10, 2020

I fixed the issue by forcing an update of javascript-obfuscator which is a dependency of gulp-javascript-obfuscator.
I did not find the yarn command to do that (yarn upgrade just update the first level dependencies). So I performed a remove followed by an add command.

yarn remove gulp-javascript-obfuscator
yarn add --dev gulp-javascript-obfuscator

@ipselon
Copy link
Contributor

ipselon commented Mar 3, 2020

I'm closing this since it is resolved.

@ipselon ipselon closed this as completed Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants