When following this tutorial. I run into an issue when I try to add CSS to the app.
When adding this code my Dev breaks.
import ‘@shopify/polaris/styles.css’;
Error:
./node_modules/@shopify/polaris/styles.css 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
:root{
| --polaris-version-number:‘4.6.1’; }
When I comment that line out. The Dev runs find but without any styling. Which is not ideal.
Any ideas on how to get this to work like in the tutorial?
Thanks.