Non flat directory structure
See original GitHub issueIs it possible to have a non-flat directory structure? I’m trying to put my functions under:
src
|---functions
|---hello.js
I’ve updated my serverless.yml
configuration’s handler to src/functions/hello.handler
. I’m able to run it locally but when I deploy it and then attempt to execute it I get the error:
Unable to import module 'src/functions/hello': Error
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Benchmark: Deep directory structure vs. flat ... - Medium
flat directory structure to store millions of files on ext4. It seems to be common knowledge that you should be using deep (also...
Read more >What are functional differences between tree-like/hierarchical ...
A tree-like file system would be one where you can create sub-directories whereas a flat-file system is where there are no sub-directories, ...
Read more >Flat and Non-Flat (GNU gettext utilities) - GNU.org
We cannot say much about flat distributions. A flat directory structure has the disadvantage of increasing the difficulty of updating to a new...
Read more >Best directory structure for static files: hierarchical vs. flat
php - Best directory structure for static files: hierarchical vs. flat - Stack Overflow. Stack Overflow for Teams – Start collaborating and ...
Read more >Structures of Directory in Operating System - GeeksforGeeks
An acyclic graph is a graph with no cycle and allows us to share subdirectories and files. The same file or subdirectories may...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@andrewoh531 I don’t think it was webpack babel setup. Turns out something else was whack with the lambda itself. After increasing the memory to 512mb it kind of flushed out and worked. It seems Lambda had frozen up and it wasn’t just the memory issue. I would delete it and recreate with more memory and try.
In the end dynogels-promisified worked for me in lambda with es6/es7 syntax (transpiled ofcourse)
Oh not that. Try removing this line https://github.com/AnomalyInnovations/serverless-es7/blob/master/webpack.config.js#L29 and this line https://github.com/AnomalyInnovations/serverless-es7/blob/master/serverless.yml#L22.