Skip to content
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

Firebase deploy Failure on MacBook M1: Incorrect Platform Detection for @css-inline/css-inline-darwin-arm64 #170

Open
harlan-zw opened this issue Mar 7, 2024 · 6 comments

Comments

@harlan-zw
Copy link
Collaborator

unjs/nitro#2096

@bigrig2212
Copy link

bigrig2212 commented Mar 19, 2024

Is there an alternative library that we can use instead of nuxt-og-image that will work with firebase?

taking it out of package.json and rebuilding pnpm-lock.yaml fixes the issue and allows a deploy, but then there are a bunch of 500 errors for screens that need it...

Note that error occurrs for libs other than @css-inline, such as @resvg

@harlan-zw
Copy link
Collaborator Author

This issue will be solved when the latest css-inline WASM is stable (see Stranger6667/css-inline#341).

Not sure what else you mean, it should work on Firebase afaik

@bigrig2212
Copy link

bigrig2212 commented Mar 19, 2024

Not just the css-inline lib - and not just on M1s:

Screenshot 2024-03-18 at 9 15 05 PM

On
Screenshot 2024-03-18 at 9 16 04 PM

(Works fine running locally - just doesn't deploy to FB)

@harlan-zw
Copy link
Collaborator Author

harlan-zw commented Mar 19, 2024

The issue is that you built your npm locks binary dependencies with the assumption that it will be deployed on Mac (the default behavior).

You can try and solve by running npm install -f as a first step within Firebase, which will force re-install the binaries(maybe). You can also update the lock to remove the linking.

I'm guessing pnpm doesn't have this issue.

@web-tailor
Copy link

web-tailor commented Apr 4, 2024

I have the same issue. Macbook pro (2015) Intel i5. Disabling ogImage in nuxtseo is what I have done to solve the deployment issue. However, it's a pity we cannot use ogImage because of this.

@mfreeman451
Copy link

This issue will be solved when the latest css-inline WASM is stable (see Stranger6667/css-inline#341).

Not sure what else you mean, it should work on Firebase afaik

Seems like the issue was closed for the WASM thing.. whats the next step?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants