Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Project created by grommet new command does not work #8

Closed
OlegZee opened this issue Nov 17, 2016 · 4 comments
Closed

Project created by grommet new command does not work #8

OlegZee opened this issue Nov 17, 2016 · 4 comments

Comments

@OlegZee
Copy link

OlegZee commented Nov 17, 2016

Here's what I get immediately after project is created:

C:\projects\2look@\sample-app>gulp dev
[01:39:24] Requiring external module babel-register
[01:39:25] Using gulpfile C:\projects\2look@\sample-app\gulpfile.babel.js
[01:39:25] Starting 'dev-preprocess'...
[01:39:25] Starting 'preprocess'...
[01:39:25] Starting 'clean'...
[01:39:25] Finished 'clean' after 1.73 ms
[01:39:25] Starting 'generate-icons'...
[01:39:25] Finished 'generate-icons' after 19 μs
[01:39:25] Starting 'jslint'...
[01:39:25]
C:\projects\2look@\sample-app\src\js\components\TodoAppDashboard.js
  7:8  error  'Section' is defined but never used  no-unused-vars

✖ 1 problem (1 error, 0 warnings)
@OlegZee
Copy link
Author

OlegZee commented Nov 17, 2016

And here's what I see after fixing the issue above:

  [458] ./~/react-hot-loader/makeExportsHot.js 1.69 kB {0}
  [459] ./~/react-hot-loader/isReactClassish.js 801 bytes {0}
  [460] ./~/react-hot-loader/isReactElementish.js 288 bytes {0}

ERROR in ./src/js/index.js
Module not found: Error: Cannot resolve module 'react/lib/ReactMount' in C:\projects\2look@\sample-app\src\js
 @ ./src/js/index.js 1:305-336

ERROR in ./src/js/components/TodoAppDashboard.js
Module not found: Error: Cannot resolve module 'react/lib/ReactMount' in C:\projects\2look@\sample-app\src\js\components
 @ ./src/js/components/TodoAppDashboard.js 1:305-336
webpack: bundle is now VALID.

@alansouzati
Copy link
Contributor

Thanks for reporting this, I'm as of this moment working on fixing this issue after React 15.4.0 has been released.

See this:
facebook/react#8312

And this:

gaearon/react-hot-loader#417

@OlegZee
Copy link
Author

OlegZee commented Nov 17, 2016

@alansouzati Thank you! I followed your instructions as in grommet/grommet#1059 and man it fixed my troubles. Also worth noting I was using yarn.

@OlegZee OlegZee closed this as completed Nov 17, 2016
@alansouzati
Copy link
Contributor

yarn is just awesome, I'm using it as well 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants