-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Description
Installing SUI on a NG4 & Universal project. There's a problem with the window reference inside SUI. It breaks Universal builds.
One of universal principals Gotchas is the prohibition usage of the window object. (referance).
Error I'm receiving is when trying to build a universal build:
ReferenceError: MouseEvent is not defined
at /Users/username/Projects/app/node_modules/ng2-semantic-ui/bundles/ng2-semantic-ui.umd.min.js:3:1190
at at.datepicker.months (/Users/username/Projects/app/node_modules/ng2-semantic-ui/bundles/ng2-semantic-ui.umd.min.js:1:69)
at Object.<anonymous> (/Users/username/Projects/app/node_modules/ng2-semantic-ui/bundles/ng2-semantic-ui.umd.min.js:1:369)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
Searching over this error, I discovered several discussions over other ng projects, like ng2-select, or ngx-bootstrap 1, ngx-bootstrap 2,
What's your position regarding this matter? Is it something that can be fixed in SUI?
im1dermike
Metadata
Metadata
Assignees
Labels
No labels