Questions tagged [angular-webpack]

23 questions
0
votes
0 answers

how to avoid giving junk names in production build

How to avoid junk names given when angular application build in production mode (ng build --prod) example when i build normally using ng build command my module request is going like…
Bikshu s
  • 389
  • 4
  • 14
0
votes
0 answers

angular 5 dynamic component no component factory found

I'm using this SO answer to create dynamic tabs: Angular dynamic tabs with user-click chosen components I'm getting this error: No component factory found for C1. Did you add it to @NgModule.entryComponents? There is a page on SO which suggests how…
jb44
  • 393
  • 1
  • 6
  • 23
0
votes
0 answers

how to exlude few nod_modules file from ng build --prod (uglifyjs) - In Angular 4

how to exlude few nod_modules file from ng build --prod (uglifyjs) as uglifyjs try to compress it , but fails to do so. I tried to do it using tsconfig.json exclude - not working so trying to do it through webpack.config.js . Please could anyone…
0
votes
1 answer

Angular 6 videojs-record results in runtime error

I am using Angular 6 along with videojs-record plugin. I configured following dependencies in my project. npm install --save video.js npm install --save videojs-record Later I referenced the videojs plugin using the following import…
CuriousMind
  • 3,143
  • 3
  • 29
  • 54
0
votes
0 answers

Getting error while installing Webpack with Angular 6 project

While installing webpack with Angular6 project I am getting error and not able to install it I used CLI command entering into project folder named myNewAngularPro - users-MacBook-Pro-3:myNewAngularPro user$ npm install -g webpack-cli Error I got…
0
votes
1 answer

Angular SSR - Cannot read property 'documentElement' of undefined

I have the following webpack.config.js const path = require('path'); const project = require(path.join(process.cwd(), 'project.json')); const nodeExternals = require('webpack-node-externals'); const webpack = require('webpack'); const locales =…
0
votes
0 answers

call angular 5 webpack bundle into another angular 5 app

I have developed an Angular 5 application(consider 'A') with webpack where I get 2 bundles(vendor.js and main.client.js) finally which I import in the index.html. My scenario is I have another Angular 5 application(consider 'B') from which I should…
Srini
  • 181
  • 1
  • 1
  • 6
0
votes
1 answer

Using string interpolation for Component Decorator fails

i was updating out project to the latest Angular 5 version and after some version adaptations it still failed. So i created a fresh new angular-project based on the current version (@angular/cli 1.5.0, @angular/* 5.0.0) and started to hunt down the…
1
2