From fde22376c848b7598bc6af47b900bd04b1ac61ca Mon Sep 17 00:00:00 2001 From: Roman Hudec Date: Tue, 15 May 2018 14:55:10 +0200 Subject: [PATCH] Fix Flow "Cannot resolve module" errors on Windows 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. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e276aa4..7e8a698 100644 --- a/package.json +++ b/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"