0

I've uploaded a React project to CodeSandbox locally using the codesandbox ./ terminal command.

CodeSandbox project link here.

In the pane to view the project it's throwing the error, "PostCSS received undefined instead of CSS string". Because of this I am unable to view the project in the browser.

It's highlighting the first two lines of my code in my 'variables.scss' file as errors:

$light-primary: #fdebeb;
$light-grey: #f1f3f6;

Why is this happening?

infused
  • 79
  • 10

1 Answers1

0

What i would suggest you to do is have a main.scss - which will contain imports of other scss files, by doing this i was able to resolve the error -

// variables
@import "./variables";

// other
@import "./general";
@import "./typography";

Now import this in your App.js. - https://codesandbox.io/s/nce-forked-jh4py

Javvy7
  • 146
  • 1
  • 8