Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

<ng-content> must be immediately followed by </ng-content> #144

Open
nahuel-soldevilla opened this issue May 16, 2019 · 0 comments
Open

Comments

@nahuel-soldevilla
Copy link

I'm not sure if I'm doing something wrong, but I get this error when I try to include the library in my project using angular 2.0.2 and the latest version of ng2-select2: 1.0.0-beta.16
If I use 1.0.0-beta.10 instead (prior to #67), the error doesn't happen.

log:

Error: Uncaught (in promise): Error: Template parse errors:
<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content> ("
        <select #selector>
            [ERROR ->]<ng-content select="option, optgroup">
            </ng-content>
        </select>"): Select2Component@2:12
Error: Template parse errors:
<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content> ("
        <select #selector>
            [ERROR ->]<ng-content select="option, optgroup">
            </ng-content>
        </select>"): Select2Component@2:12

package.json:

{
  "dependencies": {
    "@angular/common": "2.0.2",
    "@angular/compiler": "2.0.2",
    "@angular/core": "2.0.2",
    "@angular/forms": "2.0.2",
    "@angular/http": "2.0.2",
    "@angular/platform-browser": "2.0.2",
    "@angular/platform-browser-dynamic": "2.0.2",
    "@angular/router": "3.0.2",
    "@angular/router-deprecated": "2.0.0-rc.2",
    "@angular/upgrade": "2.0.2",
    "angular2-in-memory-web-api": "0.0.21",
    "babel-polyfill": "^6.26.0",
    "core-js": "^2.5.3",
    "ng2-select2": "1.0.0-beta.16",
    "reflect-metadata": "^0.1.12",
    "rxjs": "5.0.0-beta.12",
    "select2": "4.0.7-rc.0",
    "systemjs": "0.19.39",
    "zone.js": "^0.6.12"
  }
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant