problem with angular universal
See original GitHub issueI’m submitting a … (check one with “x”)
[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question
Current behavior
when i want build my app with production mode and with angular universal i get this error:
var parentJsonpFunction = window[“webpackJsonpngx_chips”]; ReferenceError: window is not defined at module.exports (\node_modules\ngx-chips\dist\ngx-chips.bundle.js:13:37) at \node_modules\ngx-chips\dist\ngx-chips.bundle.js:165:10 at webpackUniversalModuleDefinition (\node_modules\ngx-chips\dist\ngx-chips.bundle.js:3:20) at Object.<anonymous> (\node_modules\ngx-chips\dist\ngx-chips.bundle.js:10:3) 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)
Expected behavior
my expected behavior is that when i put this library in whitelist of webpack.config.js similar to other 3rd party libraries like material design its work properly…
Minimal reproduction of the problem with instructions (if applicable)
What is the motivation / use case for changing the behavior? (if applicable)
What do you use to build your app? (SystemJS, Webpack, angular-cli, etc.). Please specify the version
Webpack 3
Angular version:
angular 4.2.4
ng2-tag-input version:
1.4.5
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:21 (4 by maintainers)
The problem still exist with latest version of ngx-chips and Angular 5
Looks like there is no solution to this other than using some other library