Meteor-Community-Packages / Meteor-Community-Packages/meteor-postcss

minifier-postcss problems with react-virtualized/styles.css

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
66
Forks
22
PR merge metrics
No merged PRs in 30d

Description

While trying to build an App that uses react-virtualized I run into the following problem:
```
Errors prevented bundling:
While minifying app stylesheet:
packages/minifier-postcss/plugin/minify-css.js:228:40: Cannot read property 'getContentsAsString' of undefined
at packages/minifier-postcss/plugin/minify-css.js:228:40
at Array.map ()
at mergeCss (packages/minifier-postcss/plugin/minify-css.js:227:36)
at CssToolsMinifier.processFilesForBundle (packages/minifier-postcss/plugin/minify-css.js:88:18)
```

Removing the import of react-virtualized/styles.css fixes the problem.

This seems to be the same problem, the standard minified has had: https://github.com/meteor/meteor/issues/10112

Contributor guide

Open the contributing guide

Research direction

Start in packages/minifier-postcss/plugin/minify-css.js at lines 88 and 227-228, then reproduce the failure by bundling an app that imports react-virtualized/styles.css. Trace why mergeCss receives an undefined value and verify that the stylesheet bundles and minifies without the reported getContentsAsString error.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.