angular-cli

Chrome on Windows docker container is not working

会有一股神秘感。 提交于 2021-01-24 07:03:28
问题 I'm trying to run Google Chrome on a docker container. This docker container is based on the microsoft/windowsservercore:ltsc2016 . I want to use the docker container to build an AngularCLI-App. Therefore, I need to run my tests in Google Chrome (with: – headless flag). Running tests with Chrome is a new feature for me, because my Angular-Apps are not based on an Angular CLI structure and the tests were executed with PhantomJS. I have updated my whole Angular-Project to fit in an AngularCLI

How to setup Tailwind for a new Angular project?

浪尽此生 提交于 2021-01-22 07:42:03
问题 I want to create a new Angular project using Tailwind CSS. My current CLI version is 10.1.1. Things I have done so far: Create a new app using ng new my-app Use Angular routing => yes Use SCSS as the stylesheet In the root directory of the project run npm i tailwindcss postcss-import postcss-loader postcss-scss @angular-builders/custom-webpack -D In the src folder there is a styles.scss file, modify it to . @import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss

How to setup Tailwind for a new Angular project?

守給你的承諾、 提交于 2021-01-22 07:41:27
问题 I want to create a new Angular project using Tailwind CSS. My current CLI version is 10.1.1. Things I have done so far: Create a new app using ng new my-app Use Angular routing => yes Use SCSS as the stylesheet In the root directory of the project run npm i tailwindcss postcss-import postcss-loader postcss-scss @angular-builders/custom-webpack -D In the src folder there is a styles.scss file, modify it to . @import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss

Angular Tree Shaking: How exactly does it work?

吃可爱长大的小学妹 提交于 2021-01-22 04:54:25
问题 We are currently trying to optimize a complex angular application (performance & bundle size). We found that we have partially unused components, but we are not 100% sure about them. Anyway ... The question we are currently asking is how exactly does tree shaking work in Angular. Question 1) If there are entries inside the declarations, imports or providers array of a module, but the module is not used anywhere, are they also removed with tree shaking or are they included in the final bundle?

Angular Tree Shaking: How exactly does it work?

寵の児 提交于 2021-01-22 04:50:22
问题 We are currently trying to optimize a complex angular application (performance & bundle size). We found that we have partially unused components, but we are not 100% sure about them. Anyway ... The question we are currently asking is how exactly does tree shaking work in Angular. Question 1) If there are entries inside the declarations, imports or providers array of a module, but the module is not used anywhere, are they also removed with tree shaking or are they included in the final bundle?

Angular package work locally but not work after deploy

纵然是瞬间 提交于 2021-01-07 01:44:12
问题 I use ng2-jalali-date-picker and jalali-moment in angular application. my date picker work in local machine but i build and deploy application in server with this command : ng build --prod my components that contain date picker not loaded and my page not rendered. I get this errors only in server: ERROR TypeError: Cannot read property 'gregorian' of undefined ERROR TypeError: Cannot read property 'hideInputContainer' of undefined ERROR Error: Uncaught (in promise): TypeError: Cannot read

Angular package work locally but not work after deploy

限于喜欢 提交于 2021-01-07 01:43:36
问题 I use ng2-jalali-date-picker and jalali-moment in angular application. my date picker work in local machine but i build and deploy application in server with this command : ng build --prod my components that contain date picker not loaded and my page not rendered. I get this errors only in server: ERROR TypeError: Cannot read property 'gregorian' of undefined ERROR TypeError: Cannot read property 'hideInputContainer' of undefined ERROR Error: Uncaught (in promise): TypeError: Cannot read

Cannot find module @angular\cli\bin\ng

ぐ巨炮叔叔 提交于 2020-12-30 04:58:45
问题 I'm getting into trouble with anngular-cli installation because it doesn't recognize the ng command in my git bash but it works in my cmd on Windows 7. I looked for some issues on the web but I didn't really find a solution. Here, the error : ng -v module.js:549 throw err; ^ Error: Cannot find module 'C:\Program Files\Git\node_modules\@angular\cli\bin\ng' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Function.Module.runMain (module.js

Cannot find module @angular\cli\bin\ng

旧城冷巷雨未停 提交于 2020-12-30 04:56:37
问题 I'm getting into trouble with anngular-cli installation because it doesn't recognize the ng command in my git bash but it works in my cmd on Windows 7. I looked for some issues on the web but I didn't really find a solution. Here, the error : ng -v module.js:549 throw err; ^ Error: Cannot find module 'C:\Program Files\Git\node_modules\@angular\cli\bin\ng' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Function.Module.runMain (module.js

Angular 11: Production build Error: Expected a pseudo-class or pseudo-element

混江龙づ霸主 提交于 2020-12-15 05:33:12
问题 Recently upgraded from Angular 6 to Angular 11 using https://update.angular.io. Everything went smooth and Angular runs locally using ng serve but when trying to build a production-build using ng serve --prod it gives just following error: Error: Expected a pseudo-class or pseudo-element. When using ng build --prod --verbose=true , it results in lot of logs similar to: WARNING in Conflict: Multiple assets emit different content to the same filename 3rdpartylicenses.txt WARNING in Conflict: