Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Support for target: 'experimental-serverless-trace' #6

Closed
theindiansoftwarecompany opened this issue Apr 27, 2020 · 4 comments
Closed

Comments

@theindiansoftwarecompany

Can you also add for target: 'experimental-serverless-trace'.
I'm using firebase, but the build returns an error:

Build error occurred
Error: ENOENT: no such file or directory, open 'google/protobuf/api.proto'

Previously used, target: 'serverless' is going to be deprecated.

Reference: vercel/next.js#11860

@FinnWoelm
Copy link
Contributor

Hi @theindiansoftwarecompany,

Thank you for using next-on-netlify and for posting an issue here! 🙂

I had not heard of target: 'experimental-serverless-trace' before, but I just started some research and some experimentation.

I'm not super familiar with Firebase. Do you have a minimal repository that reproduces the issue? That would be super helpful!

We'll find a solution! Either by adding support for this new NextJS target or by manually including the google/protobuf/api.proto files. I found an interesting thread here: netlify/netlify-lambda#112

@FinnWoelm
Copy link
Contributor

FinnWoelm commented May 15, 2020

I just tried spinning up a demo using target: 'experimental-serverless-trace'. It works!

I basically just had to manually install three packages that NextJS does not seem to bundle when using experimental-serverless-trace: node-sass, sass, and fibers:

npm install node-sass sass fibers

I'm not using Firebase, so we'll need to see how it works with that. If you can send a minimal repo, that would be awesome!

@FinnWoelm
Copy link
Contributor

Hey @theindiansoftwarecompany,

Are you still needing support for this? Did you get a chance to set up a minimal repo where I can reproduce the error? I'm happy to look into it.

Otherwise, I'll be closing this issue in a few days. We can always reopen it if the need arises.

Hope you're doing well!

@FinnWoelm
Copy link
Contributor

Hi @theindiansoftwarecompany,

I'm going to close this issue for now. Feel free to reopen it if you are still interested in resolving this issue! I'm here and happy to help :)

Happy hacking 🔥
Finn

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

No branches or pull requests

2 participants