Search Posts

Category: webpack

PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR ReferenceError: Can’t find variable: Map

I have used “MVC ASP.NET Core with Angular” template. I am trying to include phantomJS and run the tests, but i get the following errors: ERROR in [at-loader] ..node_moduleszone.jsdistzone.js.d.ts:122:11 TS2451: Cannot redeclare block-scoped variable ‘Zone’. ERROR in [at-loader] ..node_moduleszone.js distzone.js.d.ts:363:14 TS2300: Duplicate identifier ‘HasTaskState’. ERROR in [at-loader] ..node_moduleszone.js distzone.js.d.ts:372:14 TS2300: Duplicate identifier ‘TaskType’. ERROR in [at-loader] ..node_moduleszone.js distzone.js.d.ts:458:15 TS2451: Cannot redeclare block-scoped variable ‘Zone’. PhantomJS 2.1.1 (Windows 7 0.0.0) ERROR ReferenceError: Can’t find variable: Map […]

Moving from systemjs to webpack with bootstrap entry

I’m trying to do some examples from the “Mean Web Development” book, when it goes into Angular the code doesn’t properly load into a browser. One of the things I’m trying to do in order to solve the issue is to move from systemjs to webpack. Now, when I run the code with systemjs – it produced *.js extension file for every file with *.ts extension. My first question – Does webpack suppose to do […]

Migrate AngularJS 1.5 app from RequireJS to Webpack+ES6

There is an Angular 1.5.11 app. And I need to move from RequireJS 2.2 to Webpack+ES6. The best thing would be to setup a Webpack environment which will support the current RequireJS code and transit to Webpack+ES6 gradually, step by step, writing tests and refactoring the source code. Can it be done? Please advise. App structure: user@host:~/dev$ tree -L 1 theapp theapp ├── app ├── css ├── font-awesome ├── fonts ├── img ├── index.html ├── […]