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
Could not resolve dependency: npm ERR! peer next@"^12 || ^13" from [email protected] npm ERR! node_modules/next-contentlayer npm ERR! next-contentlayer@"^0.3.4" from the root project
#607
Closed
alamenai opened this issue
Nov 28, 2023
· 6 comments
Thank you so much for this amazing solution. We really enjoy working with it.
Today, our build failed in the deployment environment and I found that the issue behind this is the version compatibility between NextJS 14 and the ContentLayer version.
In my local, I installed the dependency using legacy-peer-deps, and everything worked well, however, when I pushed the code and during the build time, I got this issue:
This my azure-pipeline.yml
# Node.js with React# Build a Node.js project that uses React.# Add steps that analyze code, save build artifacts, deploy, and more:# https://docs.microsoft.com/azure/devops/pipelines/languages/javascripttrigger:
- mainpool:
vmImage: ubuntu-lateststeps:
- task: NodeTool@0inputs:
versionSource: 'spec'versionSpec: '10.x'checkLatest: truedisplayName: 'Install Node.js'
- script: | npm install npm run builddisplayName: 'npm install and build'
The text was updated successfully, but these errors were encountered:
This is the same error that's captured in #575. Generally, the recommended way to solve it is with npm, yarn, or pnpm overrides, like is described in this comment.
Hi Contenlayer Team,
Thank you so much for this amazing solution. We really enjoy working with it.
Today, our build failed in the deployment environment and I found that the issue behind this is the version compatibility between NextJS 14 and the ContentLayer version.
In my local, I installed the dependency using
legacy-peer-deps
, and everything worked well, however, when I pushed the code and during the build time, I got this issue:This my
azure-pipeline.yml
The text was updated successfully, but these errors were encountered: