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.

Unexpected behaviour when bundling with Webpack

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
[ ] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior

When i am bundling everything in production mode, the component seems to not apply in a right way the styles.

Expected behavior

In development mode it works perfectly

Minimal reproduction of the problem with instructions (if applicable)

What do you use to build your app?. Please specify the version

Webpack

Angular version:

Angular 4.3.6

ngx-chips version:

ngx-chips 1.5.3

Browser:

All

Should i do something special in order to make it compatible with webpack? My script to bundle it is the following:

  "scripts": {
    "start": "node ./bin/www",
    "build": "del-cli public/js/app && webpack --config webpack.config.dev.js --progress --profile --watch",
    "build:prod": "del-cli public/js/app && ngc -p tsconfig.aot.json && ngc -p tsconfig.aot.json && webpack --config webpack.config.prod.js --progress --profile --bail && del-cli 'public/js/app/**/*.js' 'public/js/app/**/*.js.map' '!public/js/app/bundle.js' '!public/js/app/*.chunk.js' 'assets/app/**/*.ngfactory.ts' 'assets/app/**/*.shim.ts' 'assets/app/**/*.ngsummary.json' 'assets/app/**/*.ngstyle.ts'"
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pablogarciamirandacommented, Sep 13, 2017

@Gbuomprisco i am not using angular-cli, i am using instead webpack to bundle everything. Hope you fix it soon. Best regards

1reaction
AustinHatemcommented, Sep 1, 2017

I am having this same problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack unexpected behavior TypeError: Cannot read ...
Webpack unexpected behavior TypeError: Cannot read property 'call' of undefined ... which disappears after rebuild of entire bundle.
Read more >
How I solved and debugged my Webpack issue through ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
Code Splitting - webpack
This feature allows you to split your code into various bundles which can then be loaded on demand or in parallel. ... This...
Read more >
Resolving bundled code - Flare Docs
When you bundle your frontend code for production (using Webpack, Vite, ... one of these configuration files, otherwise it may lead to unexpected...
Read more >
API - esbuild
Some bundlers such as Webpack try to support this by including all potentially-reachable files in the bundle and then emulating a file system...
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