-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"next build" works locally but fails in "now" in latest Next (6.1.1) #4832
Comments
Looks like the module wasn't installed, so I'm pretty sure it's not related to Next.js. I've asked @TooTallNate to check this issue. |
I tried with a fresh |
Downgraded to working versions + Next 5: https://github.com/trevordmiller/trevordmiller-website/commit/c32f83263418084e60d13a16c39314270443f3c8 I'm going to wait until Babel 7 is stable before trying to upgrade to Next 6 again. |
I'm 99% sure it's not related to babel being on beta. Also 95% sure this is unrelated to Next.js. I can't clone your repository, on my internet connection it takes ~2 hours. |
Did some more digging and figured out the errors I was seeing; it seems that new versions of Next.js now require
|
https://github.com/zeit/next-plugins/tree/master/packages/next-mdx#installation Seems like the plugin docs are consistent, I guess we have to change the MDX docs to say to use the next-mdx plugin instead.
This seems highly unlikely. Which devdeps? |
Per mdx-js/mdx#128 and the related mdx-js/mdx#131, I had |
Bug report
Describe the bug
I'm not sure where to put this - if it's related to
next
,now
, ormdx
. But when I runnext build
locally, it works just fine. When I runnow
and now runsnext build
it errors out. I've confirmed I'm using the same Node version locally that is used bynow
(8.11.3). I've got apackage-lock.json
- so in theory the build innow
should be the same as local...To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
next build
(npm run build) locally would be different than thenext build
in nowExpected behavior
next build
works the same locally as it does innow
.Screenshots
Local:
In Now
Errors with
Cannot find module 'remark-highlight.js'
.System information
now
now
as it doesn't show itThe text was updated successfully, but these errors were encountered: