You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project with Next.js and react. In my project Next.js version was 4.2.3 and my application was running properly with "npm run dev" but with "npm run build" I was getting an error because of some modules that do not support ES6. After being unsuccessful in solving the problem I decided to reinstall needed modules again.
The version of next.js is 8.1.0 now. However, after reinstalling modules, I cannot run (npm run dev or node server.js) or build (npm run build) the application because I am getting this error which I have not found any way to solve it:
Build error occurred
Error: /home/parastoo/Dropbox/Projects/Ethereum/node_modules/scrypt/build/Release/scrypt.node: invalid ELF header
at Object.Module._extensions..node (module.js:681:18)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/parastoo/Dropbox/Projects/Ethereum/node_modules/scrypt/index.js:3:20)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/parastoo/Dropbox/Projects/Ethereum/node_modules/scrypt.js/node.js:1:76)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
I'm working on a project with Next.js and react. In my project Next.js version was 4.2.3 and my application was running properly with "npm run dev" but with "npm run build" I was getting an error because of some modules that do not support ES6. After being unsuccessful in solving the problem I decided to reinstall needed modules again.
The version of next.js is 8.1.0 now. However, after reinstalling modules, I cannot run (npm run dev or node server.js) or build (npm run build) the application because I am getting this error which I have not found any way to solve it:
package.json is:
Can someone help me solve the problem?
The text was updated successfully, but these errors were encountered: