Skip to content
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

Updating systemjs from 0.21.5 to latest (6.14.1) #2464

Open
1 task
YasiruOps opened this issue Jul 20, 2023 · 0 comments
Open
1 task

Updating systemjs from 0.21.5 to latest (6.14.1) #2464

YasiruOps opened this issue Jul 20, 2023 · 0 comments

Comments

@YasiruOps
Copy link

YasiruOps commented Jul 20, 2023

  • SystemJS Version: 0.21.5
  • Which library are you using?
    • system.js

Hello I'm new to angular and I'm trying to upgrade a project from systemjs 0.21.5 to latest, I read that system.config.js has been deprecated and its been replaced with package name maps. I couldn't find any sample package name map files. This is what my systemjs.config look like at the moment. how do i convert this to package name maps.

`(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/fesm2015/core.mjs',
        '@angular/common': 'npm:@angular/common/fesm2015/common.mjs',
        '@angular/compiler': 'npm:@angular/compiler/fesm2015/compiler.mjs',
        '@angular/platform-browser': 'npm:@angular/platform-browser/fesm2015/platform-browser.mjs',
        '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/fesm2015/platform-browser-dynamic.mjs',
        '@angular/animations': 'npm:@angular/animations/fesm2015/animations.mjs',
        '@angular/animations/browser': 'npm:@angular/animations/fesm2015/browser.mjs',
        '@angular/platform-browser/animations': 'npm:@angular/platform-browser/fesm2015/animations.mjs',
        //'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
        '@angular/common/http': 'node_modules/@angular/common/fesm2015/http.mjs',
        '@angular/router': 'npm:@angular/router/fesm2015/router.mjs',
        '@angular/forms': 'npm:@angular/forms/fesm2015/forms.mjs',

        //'@progress': 'npm:@progress',
        //'@telerik': 'npm:@telerik',
        '@progress/kendo-angular-grid': 'npm:@progress/kendo-angular-grid/dist/systemjs/kendo-angular-grid.js',
        '@progress/kendo-angular-intl': 'npm:@progress/kendo-angular-intl/dist/systemjs/kendo-angular-intl.js',
        '@progress/kendo-date-math': 'npm:@progress/kendo-date-math/dist/systemjs/kendo-date-math.js',
        '@progress/kendo-angular-resize-sensor': 'npm:@progress/kendo-angular-resize-sensor/dist/systemjs/kendo-angular-resize-sensor.js',
        '@progress/kendo-angular-l10n': 'npm:@progress/kendo-angular-l10n/dist/systemjs/kendo-angular-l10n.js',
        '@progress/kendo-angular-pdf-export': 'npm:@progress/kendo-angular-pdf-export/dist/systemjs/kendo-angular-pdf-export.js',
        '@progress/kendo-angular-excel-export': 'npm:@progress/kendo-angular-excel-export/dist/systemjs/kendo-angular-excel-export.js',
        '@progress/kendo-data-query': 'npm:@progress/kendo-data-query/dist/systemjs/kendo-data-query.js',
        '@progress/kendo-angular-popup': 'npm:@progress/kendo-angular-popup/dist/systemjs/kendo-angular-popup.js',
        '@progress/kendo-file-saver': 'npm:@progress/kendo-file-saver/dist/npm/main.js',
        '@progress/kendo-popup-common': 'npm:@progress/kendo-popup-common/dist/systemjs/kendo-popup-common.js',
        '@progress/kendo-drawing': 'npm:@progress/kendo-drawing/dist/systemjs/kendo-drawing.js',
        '@progress/kendo-ooxml': 'npm:@progress/kendo-ooxml/dist/npm/main.js',
        '@progress/kendo-angular-dateinputs': 'npm:@progress/kendo-angular-dateinputs/dist/systemjs/kendo-angular-dateinputs.js',
        '@progress/kendo-angular-inputs': 'npm:@progress/kendo-angular-inputs/dist/systemjs/kendo-angular-inputs.js',
        '@progress/kendo-angular-dropdowns': 'npm:@progress/kendo-angular-dropdowns/dist/systemjs/kendo-angular-dropdowns.js',
        '@progress/kendo-angular-layout': 'npm:@progress/kendo-angular-layout/dist/systemjs/kendo-angular-layout.js',
        '@telerik/kendo-inputs-common': 'npm:@telerik/kendo-inputs-common/dist/npm/main.js',
        '@telerik/kendo-intl': 'npm:@telerik/kendo-intl/dist/systemjs/kendo-intl.js',
        '@telerik/kendo-draggable': 'npm:@telerik/kendo-draggable/dist/systemjs/kendo-draggable.js',
        '@progress/kendo-angular-buttons': 'npm:@progress/kendo-angular-buttons/dist/systemjs/kendo-angular-buttons.js',
        '@progress/kendo-angular-tooltip': 'npm:@progress/kendo-angular-tooltip/dist/systemjs/kendo-angular-tooltip.js',
        '@progress/kendo-angular-dialog': 'npm:@progress/kendo-angular-dialog/dist/systemjs/kendo-angular-dialog.js',
        '@progress/kendo-angular-treeview': 'npm:@progress/kendo-angular-treeview/dist/systemjs/kendo-angular-treeview.js',
        '@progress/kendo-common': 'npm:@progress/kendo-common/dist/systemjs/kendo-common.js',
        '@progress/kendo-licensing': 'npm:@progress/kendo-licensing/dist/index.js',
        '@progress/kendo-angular-common': 'npm:@progress/kendo-angular-common/dist/systemjs/kendo-angular-common.js',
        '@progress/kendo-angular-label': 'npm:@progress/kendo-angular-label/dist/systemjs/kendo-angular-label.js',
        '@progress/kendo-angular-progressbar': 'npm:@progress/kendo-angular-progressbar/dist/systemjs/kendo-angular-progressbar.js',

        '@progress/jszip-esm': 'npm:@progress/jszip-esm/dist/jszip.js',
        '@progress/pako-esm': 'npm:@progress/pako-esm/dist/pako.js',


        // other libraries
        'rxjs': 'npm:rxjs',
        'rxjs-compat': 'npm:rxjs-compat',
        'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js',
        'tslib': 'npm:tslib/tslib.js',

        'jszip': 'npm:jszip',
        'pako': 'npm:pako',


        'moment': 'npm:moment/moment.js',
        '@ng-bootstrap/ng-bootstrap': 'npm:@ng-bootstrap/ng-bootstrap/bundles/ng-bootstrap.umd.js',

        'plugin-babel': 'npm:systemjs-plugin-babel/plugin-babel.js',
        'systemjs-babel-build': 'npm:systemjs-plugin-babel/systemjs-babel-browser.js'
    },

    transpiler: 'plugin-babel',

    //packages tells the System loader how to load when no filename and/or no extension
    packages: {
        app: {
            defaultExtension: 'js'
        },
        rxjs: {
            defaultExtension: 'js',
            main: 'index.js'
        },
        "rxjs-compat": {
            defaultExtension: 'js',
            main: "index.js"
        },
        "rxjs/operators": {
            "main": "index.js",
            "defaultExtension": "js"
        },
        "rxjs/internal-compatibility": {
            "main": "index.js",
            "defaultExtension": "js"
        },
        "jszip": {
            "main": ".js",
            "defaultExtension": "js"
        },

        "pako": {
            "main": ".js",
            "defaultExtension": "js"
        },
    }
});

})(this);
`

@YasiruOps YasiruOps changed the title Updating from systemjs from 0.21.5 to latest (6.14.1) Updating systemjs from 0.21.5 to latest (6.14.1) Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant