Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4971f0

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 parent3699934 commitc4971f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp