Coder Social home page Coder Social logo

Comments (6)

WolvenOne27 avatar WolvenOne27 commented on June 12, 2024 2

I ran into the same issue and was able to get it working.
I found this post on stack overflow for ng2-charts, but the same thing applied here.
I needed to both add 'ng2-select' as a package and map to it in the System.config for it to run correctly.

>         System.config({
>             baseURL: 'http://localhost:5531/',
>             packages: {
>                 app: {
>                     format: 'register',
>                     defaultExtension: 'js'
>                 },
>                 'ng2-select':{
>                     defaultExtension: 'js'
>                 }
>             },
>             map: {
>                 moment: 'node_modules/moment/moment.js',
>                 'ng2-select': 'node_modules/ng2-select'
>             },
>             meta: {
>                 '*.js': { scriptLoad: true }
>             }
>         })

from ng2-select.

vmasek avatar vmasek commented on June 12, 2024 1

First step to find the solution is opening the console network tab and seek which of your requested scripts have been responded with default html response. When you find it, you'll know that it is eighter not provided (systemjs, gulp, ...) or bad import.

from ng2-select.

noagr avatar noagr commented on June 12, 2024 1

Thanks a lot. It solved my problem

from ng2-select.

bissolli avatar bissolli commented on June 12, 2024

Better explained!
http://stackoverflow.com/questions/36274015/angular2-trouble-in-integrating-ng2-select

If somebody knows how to fix it!

from ng2-select.

vmasek avatar vmasek commented on June 12, 2024

'<' in Unexpected token <(…) is begining of a <!doctype HTML> html tag, it means that one of your imported/used scripts (in this case i bet on import {Select} from "ng2-select/ng2-select";) is probably not routed/provided and you are getting default response containing your app html document.
In issue #48 is described problem that leads to this and in #45 it is explained how to fix it. I was doing this fixes few days ago and it helped.

from ng2-select.

noagr1 avatar noagr1 commented on June 12, 2024

I have the same problem I tried all the stuff mention in issues #45 and #48 but with no help.
What should be the problem?

from ng2-select.

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.