Guest User

Untitled

a guest
Jan 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. "scripts": {
  2. "dev": "next",
  3. "build": "next build",
  4. "start": "next start"
  5.  
  6. > Failed to build { Error: (client) ./pages/index.js Module not found: Error: Can't resolve 'react' in 'path/to/pages' (......) }
  7. npm ERR! code ELIFECYCLE
  8. npm ERR! errno 1
  9. npm ERR! arcfsoon@1.0.0 build: `next build`
  10. npm ERR! Exit status 1
  11. npm ERR!
  12. npm ERR! Failed at the arcfsoon@1.0.0 build script.
  13. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  14.  
  15. npm ERR! A complete log of this run can be found in:
  16. npm ERR! /home/jp/.npm/_logs/2019-01-19T13_55_25_781Z-debug.log
  17.  
  18. module.exports = {
  19. //...
  20. resolve: {
  21. module: ['react']
  22. }
  23. };
Add Comment
Please, Sign In to add comment