GithubHelp home page GithubHelp logo

Comments (6)

anikets43 avatar anikets43 commented on August 16, 2024

@chambersDon

Replace mapping with following, also add default extension.
System.config({ packages: { app: { format: 'register', defaultExtension: 'js' }, 'ng2-file-upload': { "defaultExtension": "ts" } }, map: { 'ng2-file-upload': 'node_modules/ng2-file-upload' } });

from ng2-file-upload.

EBozan avatar EBozan commented on August 16, 2024

Index.html.. Where "libs" is your .js folder under wwwroot

System.config({
        packages: {
            appScripts: {
                defaultExtension: 'js'
            }
            , 'ng2-file-upload': { defaultExtension: 'js' }
                }, map: { 'ng2-file-upload': 'libs/ng2-file-upload/' }
            }

    );

and component... {Directpry/File}

import {FILE_UPLOAD_DIRECTIVES, FileUploader} from 'ng2-file-upload/ng2-file-upload';

from ng2-file-upload.

anikets43 avatar anikets43 commented on August 16, 2024

@EBozan

Mention the default extension for ng2-file-upload as mentioned in above thread.

Also, verify whether tyou have injected the FILE_UPLOAD_DIRECTIVES and FileUploader in the component.
There is a bug in the component. Refer https://github.com/valor-software/ng2-file-upload/issues/131 and make changes manually.

Please check the console for any error. That would help us to figure out the issue.

Cheers,
Aniket

from ng2-file-upload.

noorahmed94 avatar noorahmed94 commented on August 16, 2024

@anikets43 Same issue as described, tried both the solutions but didnt worked for me. Installed the library using npm install and here is my system.js

System.config({
            packages: { 
                transpiler: 'typescript',
                typescriptOptions: {
                    emitDecoratorMetadata: true
                },       
                app: {
                    format: 'register',
                    defaultExtension: 'js'
                },
                'ng2-material': {
                    defaultExtension: 'js'
                },
                'rxjs': {defaultExtension: 'js'},
                'ng2-file-upload': { defaultExtension: 'ts' }
            },
            map: {
                app: "./app",
                "ng2-material":"node_modules/ng2-material",
                "angular2-jwt": "node_modules/angular2-jwt/angular2-jwt.js",
                "browser-sync" : "node_modules/browser-sync/browser-sync-client.2.11.2.js",
                "ng2-ckeditor" : "node_modules/ng2-ckeditor/lib/CKEditor.js",
                rxjs: 'node_modules/rxjs',
                'ng2-file-upload': 'node_modules/ng2-file-upload',
                'traceur' : "node_modules/traceur/bin/traceur.js"
            },
        });
        System.import('app/main')
        .then(null, console.error.bind(console));

from ng2-file-upload.

hei1233212000 avatar hei1233212000 commented on August 16, 2024

I am encountering the same issue, any solution now?

from ng2-file-upload.

valorkin avatar valorkin commented on August 16, 2024

PR with fix merged, should be fixed
check bundles and ng2-bootstrap sample

from ng2-file-upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.