Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issues #70

Closed
ghost opened this issue Oct 21, 2016 · 4 comments
Closed

Installation issues #70

ghost opened this issue Oct 21, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 21, 2016

I recently installed this dependency, which looks to be the leader in React Flexbox Grid systems, to my project to spike on a prototype and, after resolving #28, encountered the following:

Error in ./~/react-flexbox-grid/lib/components/Grid.js
Module not found: Error: Cannot resolve module 'style' in /Users/jhabdas/Developer/project/node_modules/react-flexbox-grid/lib/components
 @ ./~/react-flexbox-grid/lib/components/Grid.js 18:19-41

Error in ./~/react-flexbox-grid/lib/components/Col.js
Module not found: Error: Cannot resolve module 'style' in /Users/jhabdas/Developer/project/node_modules/react-flexbox-grid/lib/components
 @ ./~/react-flexbox-grid/lib/components/Col.js 14:19-41

Error in ./~/react-flexbox-grid/lib/components/Row.js
Module not found: Error: Cannot resolve module 'style' in /Users/jhabdas/Developer/project/node_modules/react-flexbox-grid/lib/components
 @ ./~/react-flexbox-grid/lib/components/Row.js 18:19-41

My environment:

node -v && npm -v
v6.3.1
3.10.3

It seems there are some installation issues with this lib and its dependencies. As a temporary workaround I was able to get past the issues by navigating into node_modules/react-flexbox-grid and issuing an npm i from that directory.

@wezlar
Copy link

wezlar commented Oct 21, 2016

I had the same issue as @JHabdas, the npm i seemed to do the trick in getting it working. Would be nice if this could be fixed.

@njwest
Copy link

njwest commented Oct 23, 2016

Ran into same issue today, thanks for the fix @JHabdas

@chilijung
Copy link

I've found out the problem, you forget to install style-loader in your project! And you should install both style-loader and css-loader.

@ghost
Copy link
Author

ghost commented Nov 1, 2016

@chilijung Nice spot! I thought about submitting a pull to add the loaders to the peerDependencies section of the package manifest, but it'd be best not to place a hard requirement on Webpack. As a result, I simply updated the documentation. This issue will be closed automatically when #73 or https://github.com/jhabdas/react-flexbox-grid/commit/57409a7ece24599e9afa2185ce6ed0df30786beb is merged.

roylee0704 added a commit that referenced this issue Nov 1, 2016
Improve instructions closes #70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants