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

SyntaxError: Invalid regular expression: invalid group specifier name #21173

Closed
muuvmuuv opened this issue Feb 3, 2020 · 4 comments
Closed

Comments

@muuvmuuv
Copy link

muuvmuuv commented Feb 3, 2020

Description

I recently published my portfolio to Now and today I tested all major browser. While doing this I got this error when viewing my website on macOS Safari, iOS Safari and iOS Brave Browser:

[Error] SyntaxError: Invalid regular expression: invalid group specifier name
	(anonyme Funktion) (app-d369554365dc339cd687.js:1)
[Warning] The resource https://marvin.digital/page-data/writings/page-data.json was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.

Steps to reproduce

Portfolio repo: https://github.com/muuvmuuv/portfolio

Use Safari and go to: https://portfolio-git-development.muuvmuuv.now.sh/

Environment

  System:
    OS: macOS 10.15.2
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 79.0.3945.130
    Firefox: 70.0.1
    Safari: 13.0.4
  npmPackages:
    gatsby: ^2.19.12 => 2.19.12 
    gatsby-image: ^2.2.40 => 2.2.40 
    gatsby-plugin-breadcrumb: ^7.0.0 => 7.0.0 
    gatsby-plugin-canonical-urls: ^2.1.20 => 2.1.20 
    gatsby-plugin-catch-links: ^2.1.25 => 2.1.25 
    gatsby-plugin-humans-txt: ^1.1.4 => 1.1.4 
    gatsby-plugin-layout: ^1.1.22 => 1.1.22 
    gatsby-plugin-manifest: ^2.2.41 => 2.2.41 
    gatsby-plugin-mdx: ^1.0.70 => 1.0.70 
    gatsby-plugin-offline: ^3.0.34 => 3.0.34 
    gatsby-plugin-postcss: ^2.1.20 => 2.1.20 
    gatsby-plugin-preact: ^3.1.26 => 3.1.26 
    gatsby-plugin-react-axe: ^0.3.0 => 0.3.0 
    gatsby-plugin-react-helmet-async: ^1.0.15 => 1.0.15 
    gatsby-plugin-react-svg: ^3.0.0 => 3.0.0 
    gatsby-plugin-remove-generator: ^1.0.4 => 1.0.4 
    gatsby-plugin-remove-trailing-slashes: ^2.1.21 => 2.1.21 
    gatsby-plugin-robots-txt: ^1.5.0 => 1.5.0 
    gatsby-plugin-sass: ^2.1.28 => 2.1.28 
    gatsby-plugin-sharp: ^2.4.5 => 2.4.5 
    gatsby-plugin-sitemap: ^2.2.27 => 2.2.27 
    gatsby-plugin-webpack-bundle-analyzer: ^1.0.5 => 1.0.5 
    gatsby-remark-autolink-headers: ^2.1.24 => 2.1.24 
    gatsby-remark-check-links: ^2.1.0 => 2.1.0 
    gatsby-remark-copy-linked-files: ^2.1.37 => 2.1.37 
    gatsby-remark-emoji: 0.0.3 => 0.0.3 
    gatsby-remark-images: ^3.1.44 => 3.1.44 
    gatsby-source-filesystem: ^2.1.48 => 2.1.48 
    gatsby-source-graphql: ^2.1.33 => 2.1.33 
    gatsby-transformer-json: ^2.2.26 => 2.2.26 
    gatsby-transformer-sharp: ^2.3.14 => 2.3.14 
  npmGlobalPackages:
    gatsby-cli: 2.8.27
@muuvmuuv
Copy link
Author

muuvmuuv commented Feb 3, 2020

Found it, it comes from this package: https://github.com/sindresorhus/normalize-url

@muuvmuuv muuvmuuv closed this as completed Feb 3, 2020
@phun-ky
Copy link

phun-ky commented Nov 24, 2021

@muuvmuuv could you please ellaborate on the fix and how you found out? I'm experiencing the same issue, but do not think it is normalize-url after upgrading gatbsy to v4

@muuvmuuv
Copy link
Author

@phun-ky read here: sindresorhus/normalize-url#105

@Pines-Cheng
Copy link

Pines-Cheng commented Feb 16, 2023

Seems this issue in normalize-url had been fixed in https://github.com/sindresorhus/normalize-url/releases/tag/v7.0.1

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