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.

Non flat directory structure

See original GitHub issue

Is 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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
hammadzzcommented, Nov 15, 2017

@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)

Read more comments on GitHub >

github_iconTop 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 >

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