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

7.1.0: npm run build results with TypeError in plugin "gulp-imagemin" when running docker-compose on Apple Silicon device #369

Open
karolpawlowski opened this issue Jan 7, 2022 · 3 comments

Comments

@karolpawlowski
Copy link

karolpawlowski commented Jan 7, 2022

I'm just trying to run my project on a new laptop with Apple Silicon chip. It is dockerised, so I thought there shouldn't be many problems. I encountered this one with gulp-imagemin in 7.1.0 version when running npm run build:

#31 13.93 [14:19:40] TypeError in plugin "gulp-imagemin"
#31 13.93 Message:
#31 13.93     fn is not a function
#31 13.93 Details:
#31 13.93     fileName: /frontend/app/img/ui/cluster_1.svg
#31 13.93     domainEmitter: [object Object]
#31 13.93     domainThrown: false
#31 13.93 

I solved it by changing version to 8.0.0 but then got this error #366 with require() of ES modules is not supported

Does anyone faced this problem? I think I should stick with 7.1.0 version, but why it doesn't work?

@jerryoung
Copy link

I met the trouble like this, too.

1 similar comment
@ikangjie
Copy link

I met the trouble like this, too.

@alienat3d
Copy link

This older version helped me to solve this problem:
npm install --save-dev gulp-imagemin@7.1.0

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

4 participants