Code Monkey home page Code Monkey logo

Comments (5)

marcelobern avatar marcelobern commented on May 23, 2024 1

Hi @awongCM, happy to hear you found the tutorial useful!

To the best of my recollection, the reason for JS rather than TS was that LB4 was added as a fix and I did not spend the time to look into the TS code as I was unfamiliar with TypeScript :-)

If you feel comfortable, please go ahead and create a PR for this change.

Or if you prefer, I can do the PR with the code provided.

from serverless-loopback.

marcelobern avatar marcelobern commented on May 23, 2024 1

@awongCM this brings some memories.

I vaguely recall getting into some TypeScript issues that I did not know how to solve and wanted to add the lb4 sample.

So I guess these might have been it :-D

I am not sure I can help you with the TypeScript errors, but I will ask you all the same. How can I help?

from serverless-loopback.

awongCM avatar awongCM commented on May 23, 2024

Hi @awongCM, happy to hear you found the tutorial useful!

To the best of my recollection, the reason for JS rather than TS was that LB4 was added as a fix and I did not spend the time to look into the TS code as I was unfamiliar with TypeScript :-)

If you feel comfortable, please go ahead and create a PR for this change.

Or if you prefer, I can do the PR with the code provided.

Hi @marcelobern

Ah. That makes sense!

Thank you for the candid reply. I certainly enjoy the tutorial - without a doubt! I have been working on my own pet serverless projects on my profile, and I've been recommended by my colleague how great the loopback framework is for building enterprise-level microservices due to its strong DDD philosophy.

Thus it had me pondering how to incorporate loopback's microservices architecture into the serverless world until I googled "loopback serverless" which lead me to your GitHub repo as the first search result page.. ;)

I'm more than happy to contribute. 👍

Let me create one and get back to on the PR submitted.

from serverless-loopback.

awongCM avatar awongCM commented on May 23, 2024

@marcelobern

I create my local PR; did the above code to replace .js counterpart file.

But when I tried to run presls-deploy, I ran into the following:

node_modules/@loopback/testlab/node_modules/@types/express-serve-static-core/index.d.ts:1183:31 - error TS1005: ';' expected.

1183      * Render the given view `name` name with `options`
                                   ~~~~

node_modules/@loopback/testlab/node_modules/@types/express-serve-static-core/index.d.ts:1183:48 - error TS1005: ';' expected.

1183      * Render the given view `name` name with `options`
                                                    ~~~~~~~

node_modules/@loopback/testlab/node_modules/@types/express-serve-static-core/index.d.ts:1199:16 - error TS1005: ';' expected.

1199      * A node `http.Server` is returned, with this
                    ~~~~

node_modules/@loopback/testlab/node_modules/@types/express-serve-static-core/index.d.ts:1200:33 - error TS1005: ';' expected.

1200      * application (which is a `Function`) as its
                                     ~~~~~~~~

node_modules/@loopback/testlab/node_modules/@types/express-serve-static-core/index.d.ts:1268:1 - error TS1160: Unterminated template literal.

1268 
     

I'm getting lot of Typescript compilation errors... 😕

from serverless-loopback.

awongCM avatar awongCM commented on May 23, 2024

@awongCM this brings some memories.

I vaguely recall getting into some TypeScript issues that I did not know how to solve and wanted to add the lb4 sample.

So I guess these might have been it :-D

I am not sure I can help you with the TypeScript errors, but I will ask you all the same. How can I help?

Interesting.

Odd thing is that I never run into any problems when cloning the loopback4 examples as a separate project; followed the tutorial; convert the main lambda wrapper to Typescript.

It works fine there after.

Perhaps there's some config settings from either tsconfig.json or similar that's not liking here...

from serverless-loopback.

Related Issues (8)

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.