GithubHelp home page GithubHelp logo

Comments (9)

Denfie avatar Denfie commented on May 27, 2024

Hey sivi2sachin,

I changed my implementation for ES6 validation.
Could you send me your tsconfig.json I think it's a part of your target. There is ES5 defined.
Did you use TS 2.2.1 or an older version?

from ng2-file-uploader.

Denfie avatar Denfie commented on May 27, 2024

Hi sivi2sachin,

I upload a new fix for your problem. Try the version 0.1.9

npm install @uniprank/ng2-file-uploader@latest --save

Hopefully it fixed your little problem.

from ng2-file-uploader.

siva2sachin avatar siva2sachin commented on May 27, 2024

Thanks Denfie. It's fixed the problem!! Also Can you please let me know map settings to be used in Systemjs.config.js file,
'@uniprank/ng2-file-uploader' : 'npm:@uniprank/ng2-file-uploader/???

While serve, the traceur is coming as 404. [1] 17.02.26 01:16:58 404 GET /traceur

from ng2-file-uploader.

Denfie avatar Denfie commented on May 27, 2024

Hi,

i don't have currently a bundle .js file. I will create this today and push a newer version later.

from ng2-file-uploader.

siva2sachin avatar siva2sachin commented on May 27, 2024

Thanks Denfie.

from ng2-file-uploader.

Denfie avatar Denfie commented on May 27, 2024

Hi siva2sachin,

now you can include this to your Systemjs.config.js like this:

// map tells the System loader where to look for things
map: {
    ...
    '@uniprank/ng2-file-uploader': 'node_modules/@uniprank/ng2-file-uploader/bundles/ng2-file-uploader.umd.js',
    ...
}

I hope it works ;-)

from ng2-file-uploader.

siva2sachin avatar siva2sachin commented on May 27, 2024

Thanks Denfie. It's working. But However while running at the browser, it's throwing an error after added the FileUploaderModule into the @NgModule section,

Below is the error,
(...)
originalErr
:
SyntaxError: Unexpected token < at eval () at SystemJSLoader.__exec (http://localhost:3000/node_modules/systemjs/dist/system.src.js:1555:18) at entry.execute (http://localhost:3000/node_modules/systemjs/dist/system.src.js:3753:16) at linkDynamicModule (http://localhost:3000/node_modules/systemjs/dist/system.src.js:3300:32) at getModule (http://localhost:3000/node_modules/systemjs/dist/system.src.js:3268:9) at http://localhost:3000/node_modules/systemjs/dist/system.src.js:3304:16 at require (http://localhost:3000/node_modules/systemjs/dist/system.src.js:3999:29) at Object.eval (http://localhost:3000/app/app.module.js:14:27) at eval (http://localhost:3000/app/app.module.js:30:4) at eval (http://localhost:3000/app/app.module.js:31:3) at eval () at SystemJSLoader.__exec (http://localhost:3000/node_modules/systemjs/dist/system.src.js:1555:18) at entry.execute (http://localhost:3000/node_modules/systemjs/dist/system.src.js:4035:18) at linkDynamicModule (http://localhost:3000/node_modules/systemjs/dist/system.src.js:3300:32) at getModule (http://localhost:3000/node_modules/systemjs/dist/system.src.js:3268:9)

zone_symbol__error
:
Error: (SystemJS) Unexpected token < SyntaxError: Unexpected token < at eval () at Object.eval (http://localhost:3000/app/app.module.js:14:27) at eval (http://localhost:3000/app/app.module.js:30:4) at eval (http://localhost:3000/app/app.module.js:31:3) at eval () Evaluating http://localhost:3000/node_modules/@uniprank/ng2-file-uploader/bundles/ng2-file-uploader.umd.js Evaluating http://localhost:3000/app/app.module.js Evaluating http://localhost:3000/main.js Error loading http://localhost:3000/main.js at eval () at Object.eval (http://localhost:3000/app/app.module.js:14:27) at eval (http://localhost:3000/app/app.module.js:30:4) at eval (http://localhost:3000/app/app.module.js:31:3) at eval () Evaluating http://localhost:3000/node_modules/@uniprank/ng2-file-uploader/bundles/ng2-file-uploader.umd.js Evaluating http://localhost:3000/app/app.module.js Evaluating http://localhost:3000/main.js Error loading http://localhost:3000/main.js at addToError (http://localhost:3000/node_modules/systemjs/dist/system.src.js:122:78) [] at linkSetFailed (http://localhost:3000/node_modules/systemjs/dist/system.src.js:687:15) [] at http://localhost:3000/node_modules/systemjs/dist/system.src.js:624:9 [] at doDynamicExecute (http://localhost:3000/node_modules/systemjs/dist/system.src.js:769:7) [] at link (http://localhost:3000/node_modules/systemjs/dist/system.src.js:964:20) [] at doLink (http://localhost:3000/node_modules/systemjs/dist/system.src.js:623:7) [] at updateLinkSetOnLoad (http://localhost:3000/node_modules/systemjs/dist/system.src.js:669:18) [] at http://localhost:3000/node_modules/systemjs/dist/system.src.js:485:11 [] at Zone.run (http://localhost:3000/node_modules/zone.js/dist/zone.js:126:43) [ => ] at http://localhost:3000/node_modules/zone.js/dist/zone.js:679:57 [] at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:166:47) [ => ] at drainMicroTaskQueue (http://localhost:3000/node_modules/zone.js/dist/zone.js:529:35) []
__zone_symbol__stack
:
"(SystemJS) Unexpected token <↵ SyntaxError: Unexpected token <↵ at eval ()↵ at Object.eval (http://localhost:3000/app/app.module.js:14:27)↵ at eval (http://localhost:3000/app/app.module.js:30:4)↵ at eval (http://localhost:3000/app/app.module.js:31:3)↵ at eval ()↵ Evaluating http://localhost:3000/node_modules/@uniprank/ng2-file-uploader/bundles/ng2-file-uploader.umd.js↵ Evaluating http://localhost:3000/app/app.module.js↵ Evaluating http://localhost:3000/main.js↵ Error loading http://localhost:3000/main.js"
message
:
(...)

from ng2-file-uploader.

Denfie avatar Denfie commented on May 27, 2024

hey siva2sachin,

I upload a newer version please use now systemjs loader umd file:

bundles/ng2-file-uploader.systemjs.umd.js

My other bundle was a webpack bundle maybe there was the problem.

from ng2-file-uploader.

siva2sachin avatar siva2sachin commented on May 27, 2024

Hi Denfie, Thank you so much for kind help. Could you please upload the .ts code for the Examples sections as I could see the .js bundle files.
So that I can have better understanding on the examples sections to learn completely. Thanks for your help.

from ng2-file-uploader.

Related Issues (6)

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.