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.

Your types deffinition does not align with latest

See original GitHub issue

I am defining ‘defaultView’ for the ExphbsOption and get the error that it does not exist. there exists a ‘defaultLayout’ property though. however if I use that, runing the code triggers a failure of

No default engine was specified and no extension was provided.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
UziTechcommented, Apr 30, 2020

I see, you should open an issue or PR on https://github.com/DefinitelyTyped/DefinitelyTyped

1reaction
adonisv79commented, Apr 30, 2020

sorry, I decided to use hbs instead after that. but basically I just followed the basic guide from here

app.engine('hbs', handlebars({
layoutsDir: __dirname + '/views/layouts',
extname: 'hbs',
//new configuration parameter
defaultLayout: 'planB',
}));
app.get('/', (req, res) => {
//instead of res.render('main', {layout: 'index'});
res.render('main');
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

Type Attributes - Using the GNU Compiler Collection (GCC)
This keyword is followed by an attribute specification inside double parentheses. Six attributes are currently defined for types: aligned , packed , ...
Read more >
c - Why does this alignment attribute have to be specified in a ...
It is working on my compiler(cygwin 5.4.0). However, attributes are not part of portable C code, so you should look at the compiler ......
Read more >
Alignment, font styles, and horizontal rules in HTML documents
This section of the specification discusses some HTML elements and attributes that may be used for visual formatting of elements. Many of them...
Read more >
Align or justify text - Microsoft Support
When you justify text, space is added between words so that both edges of each line are aligned with both margins. The last...
Read more >
The repository for high quality TypeScript type definitions.
The repository for high quality TypeScript type definitions. - GitHub - DefinitelyTyped/DefinitelyTyped: The repository for high quality TypeScript type ...
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