box / box-ui-elements

React Components for Box's Design System and Pluggable Components
https://developer.box.com/docs/box-ui-elements
Other
539 stars 301 forks source link

Fails to build with react-scripts 3.3.0 #2078

Open drover25 opened 4 years ago

drover25 commented 4 years ago

Please fill out the following template so we can reproduce and fix your issue as quickly as possible!

Note: if your issue includes a potential security vulnerability, please do not file it here. Instead, email the issue to security@box.com for support.

Note: if your issue involves previewing files, please report the issue here.

Environment:

Desktop (please complete the following information):

Steps to reproduce the problem: react-scripts build with react-scripts 3.30

What is the expected behavior? (Screenshots can be helpful here) Builds without warnings

What went wrong? (Screenshots, console logs, or HAR files can be helpful here) chunk 0 [mini-css-extract-plugin] Conflicting order between:

chunk 0 [mini-css-extract-plugin] Conflicting order between:

drover25 commented 4 years ago

Looks like others are having this issue as well https://github.com/facebook/create-react-app/issues/5372#issuecomment-505985237

dhebert-dev commented 4 years ago

Having the same warnings with the same scss files

dhebert-dev commented 4 years ago

We were able to resolve this issue on react-scripts 3.4.0 by importing the specific scss files that are causing the issue into the js file that contains the box ui element. For us the scss files that we needed to import were:

import "box-ui-elements/es/components/scroll-wrapper/ScrollWrapper.scss"; import 'box-ui-elements/es/components/flyout/Flyout.scss';

tmaiaroto commented 2 years ago

node sass is deprecated. this is still an issue that pops up from time to time depending on the system and version of node and/or npm. i wish this package just shipped with prebuilt styles.

running into this again. and vercel doesn't build either.