devextreme-angular icon indicating copy to clipboard operation
devextreme-angular copied to clipboard

SystemJs Configuration

Open sepehr-davarnia opened this issue 9 years ago • 1 comments

To help us process the issue more efficiently, please provide the following information:

  • Specify the version of the devextreme-angular and devextreme packages you are using.

    devexteme version: 16.2.6 devextreme-angular version: 16.2.6

  • Specify the type of the issue (check one with "x"): [ ] bug Report [ ] feature request [X] support inquiry

Hello

I cant get devexterme to work using systemJS: image

And this is my system.config file:


/**
 * System configuration for Angular samples
 * Adjust as necessary for your application needs.
 */
(function (global) {
    System.config({
        paths: {
            // paths serve as alias
            'npm:': 'node_modules/'
        },
        // map tells the System loader where to look for things
        map: {
            // our app is within the app folder
            app: 'app',

            // angular bundles
            '@angular/core': 'npm:@angular/core/bundles/core.umd.js',
            '@angular/common': 'npm:@angular/common/bundles/common.umd.js',
            '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
            '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
            '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
            '@angular/http': 'npm:@angular/http/bundles/http.umd.js',
            '@angular/router': 'npm:@angular/router/bundles/router.umd.js',
            '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
            //DEVEXTEREME
            'devextreme': 'npm:devextreme',                   // <== add this line
            'jquery': 'npm:jquery/dist/jquery.min.js',        // <== add this line
            'jszip': 'npm:jszip/dist/jszip.min.js',           // <== add this line
            'devextreme-angular': 'npm:devextreme-angular',   // <== add this line
            // other libraries
            'rxjs': 'npm:rxjs',
            'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'
        },
        // packages tells the System loader how to load when no filename and/or no extension
        packages: {
            app: { defaultExtension: 'js' },
            rxjs: { defaultExtension: 'js' },
            'devextreme-angular': { main: 'index.js', defaultExtension: 'js' }, 
            devextreme: { defaultExtension: 'js' }
        }
    });
})(this);

what am i doing worng?

sepehr-davarnia avatar Apr 26 '17 08:04 sepehr-davarnia

Hi,

A similar issue can occur if you have not registered the devextreme and devextreme-angular packages in the package.json configuration file:

    "devextreme": "^16.2.6",
    "devextreme-angular": "^16.2.6",

For example, review the installation help section, where we have described how to install these modules. Do not forget to trigger the "npm install" command to ensure that all the registered modules are installed.

AlexanderKovalenko avatar May 15 '17 14:05 AlexanderKovalenko