-
Notifications
You must be signed in to change notification settings - Fork 484
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
References errors Element, MouseEvent... not defined #529
Comments
this is because those are browser only types that |
@thebarada for ng2-bootstrap, please track this issue valor-software/ngx-bootstrap#964, it should be solved soon |
@gdi2290 @hongbo-miao |
@thebarada no problem, you can create an issue on angular2-masonry if you meet the problem |
@thebarada I experienced the same issue, but then I was wondering why to import the Ng2BootstrapModule on the server side? |
@crebuh because it wouldn't really be isomorphic if you couldn't... However, the dirty work around is in the docs. You can load any module and have browser side pick one side and node pick the other, however that leaves you with having to shim up module by module which also really defeats the point. There is some promise in the new |
@crebuh do you mean that I should not import bootstrap on server? |
Use ng2bootstrap @thebarada, it doesn't use jQuery or anything and should work. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
it occurs when using third-party plugins (etc ng2-bootstrap, angular2-masonry, clipboard).
There are errors such "Element, MouseEvent... not defined" when application run on server
The text was updated successfully, but these errors were encountered: