Skip to content
This repository has been archived by the owner on Dec 31, 2017. It is now read-only.

dynamic AMD require #89

Open
arodbar opened this issue Jan 21, 2014 · 0 comments
Open

dynamic AMD require #89

arodbar opened this issue Jan 21, 2014 · 0 comments

Comments

@arodbar
Copy link

arodbar commented Jan 21, 2014

I have a problem when I use a dynamic "require" into function. For example:

function( key){
    if (!result.service) {
        require(["app/models/" + key], function(StaticDataModel) {
            ...
       }
    }
}

where "key" it is a String argument of my function.

The error that is displayed on screen is:

"Error: ENOENT, no such file or directory 'path\app\models\undefined.js'"

I tried to put this file into the exclude files list but it is important that this file is into the documentation. I also tried to put the 'undefined.js' into that list but without any result.

I would like if you could guide me to how resolve this problem.

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