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 using gulp-svg-sprite #140

Open
Voo2 opened this issue Jul 19, 2023 · 3 comments
Open

error in using gulp-svg-sprite #140

Voo2 opened this issue Jul 19, 2023 · 3 comments

Comments

@Voo2
Copy link

Voo2 commented Jul 19, 2023

I have been using gulp-svg-sprite for years without any problems. Now I have implemented my gulpfile.js for building my svg sprites in a new projekt (newer node.js version and other module versions). If I execute the gulpfile.js I get the following error message:

[17:30:12] Using gulpfile D:\dev\Angular-Migration\Code\application-main\fro
ntend\assets-src\images\gulpfile.js
[17:30:12] Starting 'default'...
[17:30:12] Starting 'app'...
[17:30:12] 'app' errored after 58 ms
[17:30:12] TypeError in plugin "gulp-svg-sprite"
Message:
    Cannot destructure property 'message' of 'error' as it is undefined.        
[17:30:12] 'default' errored after 61 ms

I didn't changed the svg files or the gulpfile.js. If you need further info to analyse please don't hesitade to ask.

@vitalyaM
Copy link

I have been using gulp-svg-sprite for years without any problems. Now I have implemented my gulpfile.js for building my svg sprites in a new projekt (newer node.js version and other module versions). If I execute the gulpfile.js I get the following error message:

[17:30:12] Using gulpfile D:\dev\Angular-Migration\Code\application-main\fro
ntend\assets-src\images\gulpfile.js
[17:30:12] Starting 'default'...
[17:30:12] Starting 'app'...
[17:30:12] 'app' errored after 58 ms
[17:30:12] TypeError in plugin "gulp-svg-sprite"
Message:
    Cannot destructure property 'message' of 'error' as it is undefined.        
[17:30:12] 'default' errored after 61 ms

I didn't changed the svg files or the gulpfile.js. If you need further info to analyse please don't hesitade to ask.

Hello. You resolve this problem? I have the same problem :(

@Voo2
Copy link
Author

Voo2 commented Sep 18, 2023

Good morning. Yes, I have fixed the problem. The error message from svg-sprite is a bug in the framework that causes error messages not to be output correctly. If you debug svg-sprite, you will quickly find this error. I actually wanted to make a pull request that would fix the error output problem.

Once the error was output correctly, I could see that in the latest version, my script no longer works the way it used to. I was then able to change it. Now everything works again.

@Kreeg
Copy link
Member

Kreeg commented Sep 18, 2023

@Voo2 Hello!
You're welcome to create a PR, any help is appreciated.

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

3 participants