Skip to main content

All Questions

Tagged with
-1 votes
1 answer
2k views

Error: Emit attempted before Angular Webpack plugin initialization(Error: Emit attempted before Angular Webpack plugin initialization)

Here what im doing is I have created new project in Angular 15 and moving the code from the Angular version 5. I have fixed all the errors but stuck with this one error.And also here is the my current ...
KKR's user avatar
  • 1
0 votes
0 answers
80 views

TypeError: Cannot read properties of undefined (reading 'mangleWasmImports')

I'm in the process of upgrading my old node 8x project to node 18.18.0. When building a webpack angularjs app I get this error and unsure how to handle this issue. Is this a bug in webpack/webpack-cli ...
jammerman's user avatar
1 vote
0 answers
51 views

Angular unit test cannot see .glsl files

I am using ng test command in my Angular 5 application. When I run tests it informs me that ERROR in ./src/vr.frag.glsl Module parse failed: Unexpected character '@' (1:0) You may need an appropriate ...
Łukasz Broś's user avatar
0 votes
1 answer
14 views

Angular6 dynamic loading by visibility?

I am trying to split angular5 application to minimize the initial payload size and one of things I consider is splitting the application bundle by components. I have seen the example splitting bundle ...
Shinya Koizumi's user avatar
2 votes
1 answer
393 views

Angular 5 transpiling without support for IE11 (Object.values is not converted)

We are noticing that in a service we had a failure to transform Object.values in code like: myMethod(items = Object.values(this.config)) { so, it would stay that way even when rendered in ie 11... ...
roberto tomás's user avatar
0 votes
0 answers
167 views

How to fix continuous __webpack_hmr calls in Angular?

I have an application on .NetCore + Angular, It is build using webpack. There is no angular cli. On deployment to production, I am getting continous network calls by __webpack_hmr. I have deployed ...
Suman's user avatar
  • 13
1 vote
1 answer
56 views

Preventing Caching in webpack 3.6

We are currently using webpack 3.6 to build our angular 5 application. However, the way we have our webpack.config.js file, it generates files with the same names always (e.g. main.js). We'd like to ...
Marshall Tigerus's user avatar
0 votes
2 answers
1k views

how to enable gzip in an angular 5 project

I am working a Project. In which, I am using angular cli(1.7.4), angular core(1.0.0-beta.2) and webpack(1.10.2). But speed is very slow, Google Page Speed insight told me some point to increase the ...
Rupendra Kumar Dhiman's user avatar
2 votes
0 answers
392 views

Image file get rename and path get changed from assets to dist

I am building my angular 5 application using following command :- "webpack --config=webpack.config.js while building what it does that , the .png files which have higher dimension more then 100*...
Sunny Goel's user avatar
  • 2,112
7 votes
2 answers
9k views

How to update angular project from 5 to 7

I am trying to update my project from angular 5 to angular 7. For this first is update @angular/cli gloabaly and locally then I installed @angular/cli locally then update ng module and other related ...
rohit13807's user avatar
0 votes
0 answers
373 views

Angular 5 :ERROR in No NgModule metadata found for 'AppModule'

I am trying to build my angular5 application but got the following error on ng build. I've tried the solution from this fix https://github.com/angular/angular-cli/issues/8798 npm cache clean --...
shamon shamsudeen's user avatar
0 votes
2 answers
284 views

Angular 5 with require throwing Cannot read property 'appendChild' of null

I have an Angular 5 application that I am trying to use require in. I have the following as my app.component.ts file: import {Component} from '@angular/core'; @Component({ selector: 'app', ...
Mike's user avatar
  • 15
2 votes
1 answer
809 views

Angular 5 source files are semi-compiled with Webpack 4

I have an Angular 5 project that works with Webpack 3. When I upgrade it to Webpack 4 (and doing the required changes), the typescript source files are presented after being compiled to Javascript (...
Matan Arbel's user avatar
3 votes
0 answers
341 views

Angular 4 library - update to v.5 using webpack

I have updated library from Angular 4 to 5 and when I run yarn lib - description files and etc. are not generated in the output folder, thus when I try building my application - I get an error. | ...
Taras Yaremkiv's user avatar
0 votes
0 answers
416 views

Expected 'styles' to be an array of strings angular 5

I'm getting this error: Uncaught Error: Expected 'styles' to be an array of strings. at assertArrayOfStrings (webpack-internal:///./node_modules/@angular/compiler/fesm5/compiler.js:1620) at ...
Allain's user avatar
  • 115

15 30 50 per page
1
2 3 4 5 6