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

Error when using angular universal #143

Closed
steveacalabro opened this issue May 10, 2019 · 2 comments
Closed

Error when using angular universal #143

steveacalabro opened this issue May 10, 2019 · 2 comments

Comments

@steveacalabro
Copy link
Contributor

steveacalabro commented May 10, 2019

Hello,

I came across an error when using this component inside of an ssr build using angular universal. For my use case, I simply used the example simple code. It builds fine when using non-SSR, however, when you try it with it you get the following error.

command

npm run build:ssr && npm run serve:ssr 

error

/Users/{user}/_git/{project}/web/dist/server.js:263990
        Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:paramtypes", [Object, HTMLElement]),
                                                                                               ^

ReferenceError: HTMLElement is not defined
    at /Users/{user}/_git/{project}/web/dist/server.js:263990:96
    at Module.<anonymous> (/Users/{user}/_git/{project}/web/dist/server.js:264017:2)
    at __webpack_require__ (/Users/{user}/_git/{project}/web/dist/server.js:20:30)
    at Object.ngx-daterangepicker-material (/Users/{user}/_git/{project}/web/dist/server.js:139940:18)
    at __webpack_require__ (/Users/{user}/_git/{project}/web/dist/server.js:131462:30)
    at Module../node_modules/ngx-daterangepicker-material/ngx-daterangepicker-material.ngfactory.js (/Users/{user}/_git/{project}/web/dist/server.js:136634:86)
    at __webpack_require__ (/Users/{user}/_git/{project}/web/dist/server.js:131462:30)
    at Module../src/app/app.server.module.ngfactory.js (/Users/{user}/_git/{project}/web/dist/server.js:137492:139)
    at __webpack_require__ (/Users/{user}/_git/{project}/web/dist/server.js:131462:30)
    at Module../src/main.server.ts (/Users/{user}/_git/{project}/web/dist/server.js:139196:90)
@Jorgen-VikingGod
Copy link

have the same issue and can not use this changes - because there is no release with this changes inside...
Any idea, how I can use this commit in my package.json

@fetrarij
Copy link
Owner

hello, v2.1.2 is up. Thanks

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

3 participants