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
"nuxt build -- --preset=firebase && cd .output/server && npm i && cd .. && firebase deploy"
Describe the bug
Nuxt-seo and Nuxt-og-image package uses following dependencies :
"@css-inline/css-inline": "0.14.1",
or "@resvg/resvg-js": "2.6.2",
running npm run build -- --preset=firebase on windows will create an un-deployable project.
Following dependencies are created in package.json which are valid for windows but not for target on cloud
css-inline/css-inline-win32-x64-msvc
@resvg/resvg-js-win32-x64-msvc
To fix it, we can alter the .output/server/package.json and node_modules directories to remove these win32 dependency, so as not break cloudbuild but then their counterpart in linux are missing and package is broken on cloud.
Additional context
No response
Logs
+ functions: .output/server folder uploaded successfully
i hosting[xxx-website]: beginning deploy...
i hosting[xxx-website]: found 223 files in .output/public
+ hosting[xxx-website]: file upload complete
i functions: updating Node.js 20 (2nd Gen) functionserver(europe-west1)...
Build failed with status: FAILURE and message: npm error code EBADPLATFORM
npm error notsup Unsupported platform for @css-inline/[email protected]: wanted {"os":"win32","cpu":"x64"} (current: {"os":"linux","cpu":"x64"})
npm error notsup Valid os: win32
npm error notsup Actual os: linux
npm error notsup Valid cpu: x64
The text was updated successfully, but these errors were encountered:
Environment
Operating System: Windows
Nuxt 3.11.2
NPM : 10.5.2
Reproduction
Create a nuxt project on windows laptop with dependency to
Set up Firebase as per instructions : https://nuxt.com/deploy/firebase
And run :
Describe the bug
Nuxt-seo and Nuxt-og-image package uses following dependencies :
running npm run build -- --preset=firebase on windows will create an un-deployable project.
Following dependencies are created in package.json which are valid for windows but not for target on cloud
To fix it, we can alter the .output/server/package.json and node_modules directories to remove these win32 dependency, so as not break cloudbuild but then their counterpart in linux are missing and package is broken on cloud.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: