babel-plugin-preval
babel-plugin-preval copied to clipboard
SyntaxError: Expecting Unicode escape sequence \uXXXX.
-
babel-plugin-preval
version: v5.0.0 -
node
version: v14.17.0 -
npm
(oryarn
) 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.
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