Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "scripts": {
- "dev": "next",
- "build": "next build",
- "start": "next start"
- > Failed to build { Error: (client) ./pages/index.js Module not found: Error: Can't resolve 'react' in 'path/to/pages' (......) }
- npm ERR! code ELIFECYCLE
- npm ERR! errno 1
- npm ERR! arcfsoon@1.0.0 build: `next build`
- npm ERR! Exit status 1
- npm ERR!
- npm ERR! Failed at the arcfsoon@1.0.0 build script.
- npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
- npm ERR! A complete log of this run can be found in:
- npm ERR! /home/jp/.npm/_logs/2019-01-19T13_55_25_781Z-debug.log
- module.exports = {
- //...
- resolve: {
- module: ['react']
- }
- };
Add Comment
Please, Sign In to add comment