New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Invalid layout specified. #49
Comments
Hmm, that is weird. I'll look into this. Managed to get tests to run and pass on Windows via Appveyor, but I'm guessing I've missed something. |
Same issue here on Bash subsystem for Windows |
Sorry this is been a long-standing issue. Getting access to a PC tomorrow to diagnose the problem. |
I think I got some hint - #61 (comment) |
FWIW a couple of years later.. I got this same error on a Mac, and the problem (at least in my case) was that the I'm not entirely sure why these const loadPlugin = config => new Promise((resolve, reject) => {
if ( config.layout.match(HANDLEBARS_PATTERN) ) {
try {
const pkg = require( 'doxdox-plugin-handlebars' );
if ( pkg ) return resolve( pkg );
} catch ( err ) {
return reject( new Error('Invalid layout specified.') );
}
}
if ( config.layout.match(JAVASCRIPT_PATTERN) ) {
const pkg = require( path.resolve( config.layout ) );
if ( pkg ) return resolve( pkg );
}
try {
const pkg = require( `doxdox-plugin-${config.layout}` );
if ( pkg ) return resolve( pkg );
return reject( new Error('Invalid layout specified.') );
} catch ( err ) {
return reject( new Error('Invalid layout specified.') );
}
} ); |
Window support has been improved in version v4.0.0-preview.2 and this should no longer be an issue. Feel free to re-open if the issue persists. |
Installed it. Launched example from your docs.
Result - "Error: Invalid layout specified.".
The text was updated successfully, but these errors were encountered: