babel-plugin-preval icon indicating copy to clipboard operation
babel-plugin-preval copied to clipboard

SyntaxError: Expecting Unicode escape sequence \uXXXX.

Open crrmacarse opened this issue 3 years ago • 0 comments

  • babel-plugin-preval version: v5.0.0
  • node version: v14.17.0
  • npm (or yarn) version: npm v6.14.13

Relevant code or config

import tailwindConfig from /* preval */ '../tailwind.config';

export const extractedTailwindConfig = tailwindConfig;
export const extractedTailwindTheme = extractedTailwindConfig.theme;

What you did: Suddenly appeared after doing an npm ci

What happened:

We're utilizing babel-plugin-react in our nextjs project as a way to easily extract tailwind theme config variables. However, after doing an npm ci this issue suddenly appeared.

image

I'm currently utilizing windows and it seem to flag out the macOS' /r. Removing all the new line and sticking everything together seem to fix it.

Any help would be appreciated as we're currently lost with this issue

crrmacarse avatar Feb 04 '22 19:02 crrmacarse