Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

Shell not loading #23

Open
bittrex-bill opened this issue Mar 8, 2016 · 0 comments
Open

Shell not loading #23

bittrex-bill opened this issue Mar 8, 2016 · 0 comments

Comments

@bittrex-bill
Copy link

Hi,

I use the following directory structure with my application.

App
/ Shell / Viewmodels / Shell.js
/ Shell / View / Shell.html
/ main.js

My main.js simply calls
app.setRoot('shell/viewmodels/shell', 'entrance');

My gulpfile is very basic:
gulp.task('durandal', function () {
durandal({
baseDir: 'app', //same as default, so not really required.
main: 'main.js', //same as default, so not really required.
output: 'main-built.js', // custom build file
almond: true,
minify: false,
verbose: true,
durandalDynamicModules: true
})
.pipe(gulp.dest('scripts'));
});

After running gulp durandal, my main-built.js file throws an error when trying to resolve shell/viewmodels/shell

I see it has been included in the main-built.js file:

define('Shell/ViewModels/shell',['plugins/router', 'durandal/app', ], function (router, app) {
...
}

Any thoughts on why I'm hitting the exception "undefined missing shell/viewmodels/shell" in main?
it is occurring at this line:
throw new Error(name + ' missing ' + depName);

Any help is appreciated.
Bill

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant