Replies: 2 comments 7 replies
-
Hi @Puneet56 Can you please share few more details like:
Thanks in Advance! |
Beta Was this translation helpful? Give feedback.
-
Hi everyone! I have a smilier setup, though a bit different Oryx error. I am not 100% sure what configuration I should have. I have a monorepo setup with yarn workspaces, based on this monorepo starter with nextjs, tamagui and expo. I want to deploy the nextjs app as a hybrid app using Azure Static Web App. From Oryx I get the following error: Can it be an issue with yarn v3 and Oryx? In the starter repo, they write this for Vercel deployment:
I have tried similar setup in the GitHub workflow file
Note: In my monorepo, the nextjs app is under To reproduce:
From what I can see and understand, Oryx doesn't know about the .lock file from the root ? I try to go to the root and run I also tried to sneak in Any idea on what I can do here? Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to deploy a next js monorepo set up using yarn workspaces.
Here is is folder structure

The nextjs app is located at /apps/next.
The build is being created successfully and Oryx also identified the build but then tries to install dependencies again using npm which fails.
Logs below
yarn run v1.22.15
$ next build
warn - Invalid next.config.js options detected:
See more info here: https://nextjs.org/docs/messages/invalid-next-config
warn - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry
info - Skipping validation of types
info - Skipping linting
info - Creating an optimized production build...
info - Compiled successfully
info - Collecting page data...
info - Generating static pages (0/16)
info - Generating static pages (4/16)
info - Generating static pages (8/16)
info - Generating static pages (12/16)
info - Generating static pages (16/16)
info - Finalizing page optimization...
Route (pages) Size First Load JS
┌ ○ / 236 B 264 kB
├ /_app 0 B 236 kB
├ ○ /404 196 B 237 kB
├ ○ /account 243 B 264 kB
├ ○ /account/edit/[editAction] 2.83 kB 242 kB
├ ○ /account/edit/password 5.37 kB 260 kB
├ λ /api/account 0 B 236 kB
├ λ /api/account/register 0 B 236 kB
├ λ /api/auth 0 B 236 kB
├ λ /api/auth/login 0 B 236 kB
├ λ /api/auth/register 0 B 236 kB
├ λ /api/auth/update-password 0 B 236 kB
├ λ /api/contracts 0 B 236 kB
├ λ /api/contracts/apply 0 B 236 kB
├ λ /api/contracts/status 0 B 236 kB
├ λ /api/contracts/vehicles 0 B 236 kB
├ λ /api/location 0 B 236 kB
├ λ /api/location/info 0 B 236 kB
├ λ /api/location/nearby 0 B 236 kB
├ λ /api/location/permits 0 B 236 kB
├ λ /api/location/search 0 B 236 kB
├ λ /api/permits 0 B 236 kB
├ λ /api/permits/info 0 B 236 kB
├ ○ /locations 5.79 kB 242 kB
├ ○ /locations/[locationId] 4.04 kB 244 kB
├ ○ /locations/[locationId]/permits 3.77 kB 244 kB
├ ○ /locations/[locationId]/permits/[permitId] 32.5 kB 276 kB
├ ○ /otp-signin 2.18 kB 241 kB
├ ○ /permits 4.12 kB 287 kB
├ ○ /permits/[permitId] 258 B 315 kB
├ ○ /permits/contracts 258 B 315 kB
├ ○ /register 276 B 266 kB
└ ○ /signin 273 B 266 kB
├ chunks/framework-480762aae34a056e.js 44.9 kB
├ chunks/main-62473d4cff30beae.js 31.2 kB
├ chunks/pages/_app-a6e783ac6a239d04.js 159 kB
├ chunks/webpack-42cdea76c8170223.js 1.07 kB
└ css/430369ebed83a6f9.css 4.02 kB
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
○ (Static) automatically rendered as static HTML (uses no initial props)
Done in 45.40s.
Preparing output...
Copying files to destination directory '/ss-oryx/app'...
Done in 1 sec(s).
Removing existing manifest file
Creating a manifest file...
Manifest file created.
Copying .ostype to manifest output directory.
Done in 109 sec(s).
---End of Oryx build logs---
Finished building app with Oryx
No Api directory specified. Azure Functions will not be created.
Created default file: /ss-oryx/app/build/index.html
Starting to build function app with Oryx
---Oryx build logs---
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20221103.1, Commit: a2c65dde152b749fea395f4d1242ea9350942258, ReleaseTagName: 20221103.1
Build Operation ID: |LrfygfxjdNk=.dffcae9b_
Detecting platforms...
Detected following platforms:
nodejs: 16.18.0
Detected the following frameworks: Next.js
Source directory : /ss-oryx/app
Destination directory: /ss-oryx/api
Removing existing manifest file
Creating directory for command manifest file if it does not exist
Creating a manifest file...
Node Build Command Manifest file created.
Using Node version:
v16.18.0
Using Npm version:
8.19.2
Installing production dependencies in '/ss-oryx/app/.oryx_prod_node_modules'...
Running 'npm install --unsafe-perm --production'...
npm WARN config production Use
--omit=dev
instead.npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: function-handler-build@0.1.0
npm ERR! Found: next@12.3.3
npm ERR! node_modules/next
npm ERR! next@"^12.3.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^11" from @expo/next-adapter@4.0.13
npm ERR! node_modules/@expo/next-adapter
npm ERR! @expo/next-adapter@"^4.0.13" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /root/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-11-17T05_50_37_864Z-debug-0.log
---End of Oryx build logs---
Oryx has failed to build the solution.
For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting
##[error]Error: The process '/usr/bin/bash' failed with exit code 1
Finishing: AzureStaticWebApp
I have set the app location as '/apps/next' and app build location as 'build'
Tried setting up engine as "yarn" in package.json build still no luck.
Beta Was this translation helpful? Give feedback.
All reactions