https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • m

    matty

    11/15/2017, 7:09 AM
    I swear... if there's a bug in graphcool, i'll find it one way or another... 😭 i just want to get this to bloody work
  • m

    matty

    11/15/2017, 7:10 AM
    does my function have a syntax error, and the CLI tool doesn't do well with non-happy paths??
  • m

    matty

    11/15/2017, 7:13 AM
    and there's no --verbose flag?
  • m

    matty

    11/15/2017, 7:13 AM
    cool i'll just remove all my fucntions from the YML file and add them back one by one until i find the issue 🙃
  • m

    matty

    11/15/2017, 7:47 AM
    ok I see... a function with just a few lines gets bundled into a 67MB file locally and then uploaded
  • m

    meikoudras

    11/15/2017, 7:50 AM
    currently having the same issue that bundling functions just keeps running forever. I think the size is so big, because all the depedencies get bundled together as well
  • m

    matty

    11/15/2017, 7:52 AM
    thats the same issue I'm having... just trying to upload a function with ~45 lines of code
  • m

    matty

    11/15/2017, 7:52 AM
    but if you look in the
    .build
    directory you'll see the zip file being uploaded. mine came to 63.7 MB ... and my upload speed right now is not great - going to take about 10-15 mins to upload
  • m

    matty

    11/15/2017, 7:53 AM
    might go find the nearest McDonalds and use their free wifi
  • m

    matty

    11/15/2017, 7:53 AM
    but it sounds like the bundling should occur on the host, without a doubt
  • m

    matty

    11/15/2017, 7:54 AM
    and also it should move from saying "bundling functions..." to "uploading functions..." so that people don't waste time trying to understand why its taking so long
  • m

    meikoudras

    11/15/2017, 7:55 AM
    holy shit..something has changed…my build.zip is 4 gigs large
  • m

    meikoudras

    11/15/2017, 7:55 AM
    from the 8 megs it was before
  • m

    meikoudras

    11/15/2017, 7:55 AM
    (also with bundled dependencies)
  • m

    matty

    11/15/2017, 7:55 AM
    @meikoudras - I just found this: https://github.com/graphcool/framework/issues/1246#issuecomment-343598621
  • m

    matty

    11/15/2017, 7:55 AM
    strange but true
  • m

    matty

    11/15/2017, 7:55 AM
    it bundles the node_modules from your actual application
  • m

    meikoudras

    11/15/2017, 7:56 AM
    yeah..but mine is not that big.(has only backend deps)
  • m

    meikoudras

    11/15/2017, 7:57 AM
    26mb node_modules
  • m

    meikoudras

    11/15/2017, 7:57 AM
    to a 4gig build.zip
  • m

    matty

    11/15/2017, 7:58 AM
    and I thought I had bad luck with GC
  • m

    matty

    11/15/2017, 7:58 AM
    can you unzip and see whats in there?
  • m

    matty

    11/15/2017, 8:00 AM
    I wonder why the entire node_modules is bundled and uploaded... even if the local code is using dependencies - why aren't the functions bundled via webpack?
  • m

    meikoudras

    11/15/2017, 8:03 AM
    well..since i cancelled the deploy the zip seems to be corrupt.
  • m

    meikoudras

    11/15/2017, 8:03 AM
    Probably not a good idea to let it grow 1 gig a minute
  • m

    matty

    11/15/2017, 8:04 AM
    just rimraf the build dir
  • m

    meikoudras

    11/15/2017, 8:06 AM
    sorry..what will rimraf do?
  • m

    matty

    11/15/2017, 8:07 AM
    rm -rf .build
  • m

    meikoudras

    11/15/2017, 8:11 AM
    you mean just delete and try again?
  • m

    meikoudras

    11/15/2017, 8:11 AM
    doing that atm. build.zip still growing
1...427428429...637Latest