profile
viewpoint

Ask questionsregexp not work in IE

Hello, my application not work in IE. It fail with error message:

SCRIPT1012: Expected '/'

Error happen in: node_modules/@emotion/stylis/src/stylis.min.js IE can't parse this regular expression: /[^]?(:[rp][el]a[\w-]+)[^]/ IE version: 11.904.16299.0

As I can see, regex101 shows that this regexp valid only for js parser, and invalid for others (php, golang and python - https://regex101.com/r/Fkr0Ji/1 ) Please replace it with something valid, or ask Bill Gates why he chose non-js regexp engine in browser.

emotion-js/emotion

Answer questions Andarist

Could u prepare a small site with the issue reproduced? Can't reproduce it inside IE11's console.

useful!

Related questions

Cannot turn off "potentially unsafe when doing server-side rendering" noise hot 2
Component selectors not working with `@emotion/babel-preset-css-prop` hot 2
How to use babel-emotion-plugin with Storybook + Typescript? hot 1
Snapshot tests showing components as '<ForwardRef />' instead of component name hot 1
Using emotion 9 and 10 in the same window hot 1
Emotion 10 - "React is not defined" hot 1
How to get auto-prefixing with vanilla Emotion? hot 1
Problems surrounding SSR injection of <style> and unreliability of :first-child selectors hot 1
Typescript definitions for @emotion/native hot 1
Component selectors can only be used in conjunction with babel-plugin-emotion hot 1
Component selectors can only be used in conjunction with babel-plugin-emotion hot 1
&:focus not working hot 1
transpile typescript to babel-plugin-emotion doesn't work hot 1
Cannot turn off "potentially unsafe when doing server-side rendering" noise hot 1
How to get auto-prefixing with vanilla Emotion? hot 1
Github User Rank List