Unexpected behaviour when bundling with Webpack
See original GitHub issueI’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:
- Created 6 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Gbuomprisco i am not using angular-cli, i am using instead webpack to bundle everything. Hope you fix it soon. Best regards
I am having this same problem.