vercel / next.js

The React Framework
https://nextjs.org
MIT License
127.06k stars 27k forks source link

Cannot find module 'string-hash' #2676

Closed renehauck closed 7 years ago

renehauck commented 7 years ago

Expected Behavior

Normal start of nextjs

Current Behavior

I can't start my server after a update (npm update), I only get this error-message:

 error  in ./~/next/dist/pages/_document.js?entry

Module build failed: Error: Cannot find module 'string-hash' (While processing preset: "/../node_modules/next/dist/server/build/babel/preset.js")

Steps to Reproduce (for bugs)

  1. install nextjs (2.4.6) everything works fine
  2. update to the latest version, i get the error-message and the app won't start

Context

Your Environment

Tech Version
next 2.4.9
node 7.9.0
OS ubuntu

npm- dependencies:

    "async": "^2.5.0",
    "boom": "^4.3.1",
    "chart.js": "^2.5.0",
    "cookie": "^0.3.1",
    "es6-promise": "^4.1.1",
    "form-data": "^2.1.4",
    "good": "^7.1.0",
    "h2o2": "^5.4.0",
    "hapi": "^16.1.1",
    "hapi-auth-basic": "^4.2.0",
    "immutability-helper": "^2.3.0",
    "joi-browser": "^10.0.6",
    "lodash": "^4.17.4",
    "log4js": "^1.1.1",
    "moment": "^2.18.1",
    "next": "2.4.6",
    "next-redux-saga": "^1.0.1",
    "next-redux-wrapper": "^1.2.0",
    "qs": "^6.5.0",
    "rc-pagination": "^1.9.8",
    "react": "^15.6.1",
    "react-async-script-loader": "^0.2.2",
    "react-chartjs2": "^1.1.1",
    "react-countup": "^2.0.3",
    "react-cropper": "^0.12.0",
    "react-cropperjs": "^1.2.5",
    "react-datepicker": "^0.46.0",
    "react-datetime": "^2.8.10",
    "react-dom": "^15.6.1",
    "react-dropzone": "^3.13.3",
    "react-image-crop": "^2.0.3",
    "react-no-ssr": "^1.1.0",
    "react-notification-system": "^0.2.13",
    "react-redux": "^5.0.5",
    "react-swal": "^2.0.0",
    "redux": "^3.7.2",
    "redux-actions": "^2.2.1",
    "redux-devtools-extension": "^2.13.2",
    "redux-saga": "0.15.4",
    "redux-thunk": "^2.2.0",
    "request": "^2.81.0",
    "request-promise": "^4.2.0",
    "semantic-ui-react": "^0.67.1",
    "socket.io": "^2.0.3",
    "socket.io-client": "^2.0.3",
    "superagent": "^3.5.1",
    "tai-password-strength": "^1.1.0",
    "wreck": "^12.2.0"
arunoda commented 7 years ago

AFAIK, we don't directly use a module like this. Some of the things you can use: