Polaris + Webpacker problem

HunkyBill
Shopify Expert
4505 46 491

Anyone know how Webpacker works and why this error is emitted during the compile?

ERROR in ./node_modules/@shopify/polaris/dist/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:'6.0.1'; --polaris-animation-skeleton-shimmer:polaris-SkeletonShimmerAnimation; }
|
| html, body{ font-size:1.5rem; font-weight:400; line-height:2rem; text-transform:initial; letter-spacing:initial; font-weight:400; color:var(--p-text); }
webpack 5.21.2 compiled with 2 errors in 2567 ms
Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
HunkyBill
Shopify Expert
4505 46 491

never mind.. just had to hack @rails/webpacker to do more.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes