Shaun Chua
Shaun Chua

Reputation: 713

deploying nextjs app to elastic beanstalk

Having trouble deploying to elastic beanstalk production

I compressed a package.json, next.config.js, .next folder into a zip and uploaded it to elastic beanstalk to deploy.

My error logs tell me this: Cannot find module '@zeit/next-sass', the thing is I put this in dev dependencies, but isn't this a dev dependency?

Upvotes: 0

Views: 2039

Answers (1)

iurii
iurii

Reputation: 4230

According to docs it should be installed a prod (not dev) dependency

npm install --save @zeit/next-sass node-sass

Upvotes: 1

Related Questions