Giter Club home page Giter Club logo

Comments (9)

dac09 avatar dac09 commented on May 28, 2024

Thanks for raising this @jayhyp!

@ahaywood I'll assign to you as I believe serverless is a deprecated deployment provider, and unsure where this stands in priority.

from redwood.

thedavidprice avatar thedavidprice commented on May 28, 2024

@jayhyp Can you confirm that you have files in api/src/services and/or api/src/functions? I.e. have you created any API endpoints or functions yet? If not, that would be the reason you're seeing the error -> no files exist to pack.

from redwood.

jwwisgerhof avatar jwwisgerhof commented on May 28, 2024

This happens to us as well after an rw upgrade to 7.5. Working perfectly fine on 6.x. No other code changes apart from the upgrade, also using the serverless deployment method. Have reverted to 6.x again for now - but will investigate further once time allows.

As a sidenote - this worked fine on ~7.2 (but then hit the Auth issue that was resolved).

from redwood.

Tobbe avatar Tobbe commented on May 28, 2024

@jwwisgerhof Thanks for the additional information.
Just to confirm – you're saying something changed between 7.2 and 7.5 that broke Serverless?

from redwood.

jwwisgerhof avatar jwwisgerhof commented on May 28, 2024

@Tobbe Yes, just checked and last I tried to upgrade to RW was 7.2.0-rc.53. The deployment worked correctly but we ran into the Authorization header issue, forcing a downgrade to 6.x.

from redwood.

dthyresson avatar dthyresson commented on May 28, 2024

@Tobbe Yes, just checked and last I tried to upgrade to RW was 7.2.0-rc.53. The deployment worked correctly but we ran into the Authorization header issue, forcing a downgrade to 6.x.

HI @jwwisgerhof re "the Authorization header issue" is that the lower vs uppercase issue to recognizing "Authorization"?

That was fixed in https://github.com/redwoodjs/redwood/releases/tag/v7.3.2

from redwood.

jwwisgerhof avatar jwwisgerhof commented on May 28, 2024

Hi @dthyresson - yes, that is the one. I am aware it was fixed, which is why I tried the upgrade to RW 7 again. It is relevant to this ticket only in that it narrows the window in which this bug was introduced to somewhere between RW7.2.0-rc.53 and current version.

Packaging of functions worked in 7.2.0-rc.53 but does not in 7.5.x (same codebase).

from redwood.

dthyresson avatar dthyresson commented on May 28, 2024

Thanks for the extra detail @jwwisgerhof -- do you think I can reproduce this with any small new RW project and the arn rw deploy serverless --stage prod --side api command ?

Looking at the code

// because its dependencies are only installed when `rw setup deploy serverless` is run
, I see the following:

    {
      title: 'Packing Functions...',
      enabled: () => sides.includes('api'),
      task: async () => {
        // Dynamically import this function
        // because its dependencies are only installed when `rw setup deploy serverless` is run
        const { nftPack } = await import('./packing/nft.js')

        await nftPack()
      },
    },

Maybe rw setup deploy serverless needs to be re-run in 7+?

Could we see if the following packages have been installed in your project?

Seems like it cannot find packing/nft.js to import.

from redwood.

jwwisgerhof avatar jwwisgerhof commented on May 28, 2024

Thanks @dthyresson - can confirm that @vercel/nft is in the lock file and the file system. Easier way to reproduce is by using the --pack-only arg. IE: yarn rw deploy sls --stage production --side api --pack-only.

Let me have a look later today to see if I can find out more information now that I know where to look.

from redwood.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.