syncfusion / ej2-javascript-ui-controls

Syncfusion JavaScript UI controls library offer more than 50+ cross-browser, responsive, and lightweight HTML5 UI controls for building modern web applications.
https://www.syncfusion.com/javascript-ui-controls
Other
400 stars 158 forks source link

CSS explicitly needs to be set as having side effects in order to work with Parcel. #161

Closed LeoDog896 closed 1 year ago

LeoDog896 commented 1 year ago

(From this StackOverflow post):

Parcel requires explicit declaration of files that have side effects, including CSS:

  "sideEffects": [
    "*.css"
  ],
Mydeensn commented 1 year ago

Hi @LeoDog896

Thank you for bringing this issue to our attention. We're glad to hear that we were able to resolve the issue by changing the CSS import from the TSX file to .css. We appreciate your patience and understanding as we worked to resolve this issue. Please find the sample and CSS reference attachment in below

image

Sample: parcel-spreadsheet.zip

dsibinski commented 1 year ago

hi @Mydeensn , this is a workaround which indeed works. However, there's still a bug when importing these CSS from TSX file. When will you include the sideEffects as @LeoDog896 suggested?

TheveshwarJayakumar commented 1 year ago

Hi All,

We have considered this as a bug at our end and we will plan to include this fix in any of our upcoming releases. You can the track the status of this fix in the below feedback link.

Feedback Link: https://www.syncfusion.com/feedback/41355/need-to-solve-the-issue-on-importing-css-from-tsx-file-in-parcel-framework-using

syncsiva commented 1 year ago

Closing for housekeeping purposes. Further, the reported bug can be tracked through below feedback link, https://www.syncfusion.com/feedback/41355/need-to-solve-the-issue-on-importing-css-from-tsx-file-in-parcel-framework-using