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

Error when building the application #49

Closed
vcarel opened this issue Dec 31, 2016 · 1 comment
Closed

Error when building the application #49

vcarel opened this issue Dec 31, 2016 · 1 comment

Comments

@vcarel
Copy link

vcarel commented Dec 31, 2016

I tried to build the application:

npm install
npm run build

But I got the following error:

ERROR in Entry module not found: Error: Cannot resolve module 'react/lib/ReactComponentBrowserEnvironment' in /.../graphiql-app-0.4.2

I beleive that's because this component has been moved to react-dom since react 15.1.0. To work-around this issue, I changed the package.js so to stick to this version, and the build worked.

BTW I have another issue when trying to start the app:

Error: ENOENT: no such file or directory, open '/.../graphiql-app-0.4.2/node_modules/electron-prebuilt/path.txt'
@vcarel
Copy link
Author

vcarel commented Dec 31, 2016

To solve the latter issue (with electron), I did as proposed in this issue: electron-userland/electron-prebuilt#76

I cd'd to node_modules/electron-prebuilt/ and cast npm run postintstall

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

2 participants
@vcarel and others