claudiajs / example-projects

Simple example projects that show how to use ClaudiaJs
650 stars 235 forks source link

Error: Cannot find module './config' #15

Closed calendarbase closed 7 years ago

calendarbase commented 7 years ago

I tried to prepare an express app for Lambda following this tutorial https://claudiajs.com/tutorials/serverless-express.html, and got this error:

Error: Cannot find module './config'

In the server file I have this: var CONFIG = require('./config');

How do I handle subfolders? Do I need to have everything in the root?