question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

problem with angular universal

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
SergioV85commented, Nov 6, 2017

The problem still exist with latest version of ngx-chips and Angular 5

2reactions
relatedrhymescommented, Jun 10, 2020

Looks like there is no solution to this other than using some other library

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Universal: real app problems - InDepth.Dev
SSR issues in Angular · 1. Infinite page loading · 2. Lack of cache out of the box · 3. Server errors of...
Read more >
Issues · angular/universal - GitHub
Server-side rendering and Prerendering for Angular - Issues ... SSR with i18n with Angular 9 not working ... Unable to run universal app....
Read more >
Don't let Angular Universal break you (or your app). Some tips ...
Debugging Angular Universal Issues involves: Looking through source code for preventative fixes (code incompatibility issues).
Read more >
Angular Universal: Complete Practical Guide
This post will be a complete practical guide for getting started with Angular Universal. We are going to go start with an existing...
Read more >
Common mistakes with Angular Universal | malcoded
Angular Universal can be quite tricky sometimes. Using the wrong statement at the wrong place can render your application useless.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found