Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Thank you for this workaround... SVG issue.

Open
#12 4 comments 1 reaction 1 assignee View on GitHub

@yarastqt is already working on this.

Since Apr 6, 2022.

Assessment

This issue has not been assessed yet.

Description

bug

I currently have a project that has globalCSS in npm components and this workaround is what I'm attempting to use.

Unfortunately, I also use the next-images package for important images of all file types (including SVGs).

No matter what, running next-global-css attempts to also parse SVG files and always errors with:
error - SyntaxError: Unexpected token '<'

Is there a way to exclude SVG files easily from next-global-css, or make it skip them entirely by default?

Dominant language
JavaScript
Stars
91
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bem/next-global-css

All issues in bem/next-global-css

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.