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

Issue with now dev #4

Closed
RemiKalbe opened this issue Aug 6, 2019 · 10 comments
Closed

Issue with now dev #4

RemiKalbe opened this issue Aug 6, 2019 · 10 comments

Comments

@RemiKalbe
Copy link

RemiKalbe commented Aug 6, 2019

Hi,

Everything works if I use now, but now dev doesn't work.
If __sapper__/build/index.js doesn't exist I get

404: The page could not be found
Code: FILE_NOT_FOUND

But if __sapper__/build/index.js exist I get

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::3000
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at Server.setupListenHandle [as _listen2] (net.js:1367:14)
    at listenInCluster (net.js:1408:12)
    at Server.listen (net.js:1492:7)
    at Object.<anonymous> (/private/var/folders/4m/kshkpbbs27s8m77s6kw9v9cw0000gn/T/zeit-fun-f1d67544251ea/launcher.js:39:8)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)

Furthermore, it would be great if we didn't have to manually build and then deploy.

I followed every change in thgh/sapper-template@220307c

@thgh
Copy link
Owner

thgh commented Aug 20, 2019

I'm not aware of documentation on how to fix this. Trial and error has already taken quite some time, so all help is welcome!

@antony
Copy link
Collaborator

antony commented Sep 15, 2019

Not sure about this particular issue, but it's worth mentioning now dev is lagging significantly behind now's actual infra, so this plugin won't work at all on now dev since it won't yet let you return an object from the build hook.

Basically I would take now dev with an entire bag of salt, this probably isn't a bug.

@uunomee
Copy link

uunomee commented Sep 28, 2019

Please see if now.json is close to the readme helps
`Example now.json

{
"version": 2,
"builds": [
{ "src": "package.json", "use": "now-sapper" }
],
}`

@antony
Copy link
Collaborator

antony commented Sep 28, 2019 via email

@antony
Copy link
Collaborator

antony commented Jan 7, 2020

Closing this as it relates to shortcomings in now dev rather than in this project.

@antony antony closed this as completed Jan 7, 2020
@zolotokrylin
Copy link

Hi everyone 👋
So we are not being able to reproduce the environment of the serverless functions locally?
Is there any workaround that will allow us to simulate functions locally? Otherway it is becoming very uncomfortable to develop locally.

@thgh
Copy link
Owner

thgh commented Jul 9, 2020

Thinking realistically, now dev will never support Sapper. OTOH if you restart your server every 5 minutes, you are pretty much there, no?

@jorngeorg
Copy link

Should this be flagged higher up in the readme? I suspect it's a deal breaker for many.

@DougAnderson444
Copy link

DougAnderson444 commented Oct 1, 2020

I run vercel dev with sapper and don't seem to have any issues. But I haven't applied this builder yet...

The only work around I need to do is delete the __sapper__/dev folder manually before I run dev.

@jorngeorg
Copy link

vercel dev is working for me now. Currently using Vercel CLI 20.1.0

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

7 participants