Closed gaulatti closed 5 months ago
The line of code creating the error is fs.readFileSync(__dirname + '/templates/css/fonts.css.template')
.
I suspect that maybe you're running it on Windows where paths have backwards slashes \
instead of forward /
, or that __dirname
is not properly resolved in the environment you're running this.
Either way, in v4 we're not using these kinds of paths to .template
files anymore, but rather we're just importing the templates as regular ES Modules, that should make this problem disappear. We're releasing v4 in June btw
I'm trying to create a Lambda with custom formatters, however as soon as trying to register the formatters I get the following error:
Is this happening by default on iniitalization? When running locally or in CodeBuild this error does not happen.