Skip to content

Commit

Permalink
fix: Flow "Cannot resolve module" errors on Windows (#280)
Browse files Browse the repository at this point in the history
Flow on Windows seems to be unable to correctly resolve imports from `react-css-modules` package, because its `main` entry in `package.json` points to a directory, instead of directly pointing to the script `dist/index.js`. 

Fixing it here seems to be easier than looking for a platform specific issue in Flow.
  • Loading branch information
black3r authored and gajus committed May 16, 2018
1 parent 3699934 commit c4971f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "react-css-modules",
"description": "Seamless mapping of class names to CSS modules inside of React components.",
"main": "./dist/",
"main": "./dist/index.js",
"repository": {
"type": "git",
"url": "https://github.com/gajus/react-css-modules"
Expand Down

0 comments on commit c4971f0

Please sign in to comment.