Skip to content

Commit c4971f0

Browse files
black3rgajus
authored andcommitted
fix: Flow "Cannot resolve module" errors on Windows (#280)
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.
1 parent 3699934 commit c4971f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-css-modules",
33
"description": "Seamless mapping of class names to CSS modules inside of React components.",
4-
"main": "./dist/",
4+
"main": "./dist/index.js",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/gajus/react-css-modules"

0 commit comments

Comments
 (0)