Comments (5)
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.
@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.
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.
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 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)
- Loopback Server and AWS Lambda hard limit HOT 3
- Fix serverless.yml file in Loopback 4 example with RDS resources config lines (AWS::EC2::VPC, AWS::EC2::Subnet, AWS::RDS::DBSubnetGroup, AWS::RDS::DBInstance)
- Not working properly with [email protected] HOT 2
- Samples for other serverless providers HOT 1
- Error running example HOT 3
- Can run, cleanup, run HOT 2
- Provide a migration guide to lb4 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-loopback.