question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid changing this.serverless.config.servicePath

See original GitHub issue

Hi!

First off, thanks for this plugin! I have been trying it and it looks awesome! A decent alternative to Webpack, indeed.

I am having compatibility issues with another plugin though (specifically with serverless-appsync-simulator). It is an offline solution for AppSync and it relies on this.serverless.config.servicePath in order to build some config objects. Since the servicePath is being suffixed with /.build, it cannot find some files it requires.

I was wondering what was the purpose of this override? My understanding is that it is to make serverless-offline work as it is looking for the handlers in that path. Am I missing something else?

I think it is probably a bad idea to change serverless config like such as there is always a risk to affect other plugins or the serverless implementation itself.

I’d be happy to help to find solutions and alternatives to this, but I’d like to have a better understanding of the motivations and consequences this could have.

Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Mar 5, 2021

🎉 This issue has been resolved in version 1.8.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

1reaction
olupcommented, Mar 2, 2021

hey @bboure you can see that we have a PR here https://github.com/floydspace/serverless-esbuild/pull/93 - would you mind trying this version in your repo to see if it builds fine ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Avoid changing this.serverless.config.servicePath - Issuehunt
I am having compatibility issues with another plugin though (specifically with serverless-appsync-simulator). It is an offline solution for AppSync and it ...
Read more >
Cannot deploy selected functions · Issue #82 - GitHub
Bug description Cannot deploy selected functions from sls configuration. Expected Behavior Deploying ... In serverless-rust/index.js there is this code:.
Read more >
Serverless Offline - Serverless Framework: Plugins
Serverless Offline. This Serverless plugin emulates AWS λ and API Gateway on your local machine to speed up your development cycles.
Read more >
How does serverless know where to find the serverless.yml?
This is the code used by Serverless to load the configuration: ... 'serverless.yml'); const yamlPath = path.join(servicePath, ...
Read more >
How to develop locally using serverless offline - Fauna
env file allows you to configure the system from the command line without making any significant changes and worrying about them impacting other ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found