Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
pardeep-cd
@pardeep-cd
Any one know why its showing this message
pardeep-cd
@pardeep-cd
Any Idea?
Aaron-Rhoades
@Aaron-Rhoades
ERROR in error TS2688: Cannot find type definition file for 'q'.
error TS2688: Cannot find type definition file for 'selenium-webdriver'.
Anyone else get the above error when running ng serve? It seems like whenever I delete node_modules and reinstall, that fixes the issue. But it always comes back after a computer reboot.
mikejf-pr
@mikejf-pr
Is there any way to call angular-cli from a node script? Or is it just use child_process.spawn
rvalimaki
@rvalimaki

@alan-agius4 Thanks a lot for angular/angular-cli#15453

Hopefully that's resolved one day. It's really ticking my nerves though :(

Luis Eduardo Jiménez Robles
@luisejrobles
Hi :wave:
i was trying to find something about i18n where I can contribute translating angular/cli docs to spanish
is that a necessary thing right no?
now*?
Lucas Granberg
@lucasgranberg
I am using ng build with --watch. Sometimes I do changes that are not picked up by this. Would it be possible to add a feature where you press (for example) enter and it would force rebuild without restarting the ng build command?
João Eduardo Soares e Silva
@joaodforce
I'm getting Unexpected value 'undefined' declared by the module when building to production using ng build --prod If I remove the --prod tag, it build normally.
the ofending module is FreBaseComponentsModule which is a module from my angular Library. It complains about in /Users/jed/Projects/Angular/angular-fre-base-components/dist/fre-base-components/fre-base-components.d.ts' but the file its only the typing exports, anyone got a clue about what could be causing this? I 've googled this but all the problems I've found were in different scenarios than mine.
ZBAGI
@ZBAGI

How can i run sed -i.compiler.bak 's/"packages\/\*\/src"/"dist\/packages\/\*"/' tsconfig.json in GNU bash but when i do

"scripts": {
    "tsconfig:set": "sed -i.compiler.bak 's/\"packages\\/\\*\\/src\"/\"dist\\/packages\\/\\*\"/' tsconfig.json",

it throws an error 'sed' is not recognized as an internal or external command, can i execute some bash script from npm

James Tikalsky
@jt2190

@ZBAGI Yes, you can run bash scripts from npm. Maybe try seeing what the environment for npm is by adding another entry to scripts:

“scripts”: {
  “env”: “env”
}

Then run:
npm run env (or perhaps npm run env | grep PATH)

James Scharett
@jscharett
anyone know if there are any vscode extensions for working with schematic .template files?
Jai Chandra
@jaichandra
Hi All,
I posted this in angular room, but I guess this belongs here:
I am getting below error since yesterday looks like some dependency update issue. Any help is appreciated.
ERROR: Unknown version 67 of android
An unhandled exception occurred: Unknown version 67 of android
See "/private/var/folders/3d/xqlw65w14z58l73ppm17kxth0000gp/T/ng-kDIunG/angular-errors.log" for further details.
DarkEdges
@darkedges
@jaichandra did you ever find a fix for your issue? I am experiencing the same after migrating from Angular 7 to 8
DarkEdges
@darkedges
@jaichandra I fixed it for me by removing my node_modules directory and reinstalling everything via npm install. Seems I had an incompatible version of autoprefixer somewhere
Richa Vyas
@richavyas
Hi, I am implementing ng update schematics for my library. I am wondering how it can be tested locally!!
Rémy Binsztock
@rbinsztock

Hi, I am currently working on a monorepository project with 6 libs inside /projects and one main application inside /src folder. When we want to develop something we need to start the library with ng build library-name --watch and in another terminal ng serve so when a change is made inside the library, the library will refresh and the main app will also refresh but we always need to save 3 or 4 times before the change are propagated to the main application. It's like the app refresh before the library and even after 2 refresh, it need more save to force another one refresh to see change in app.

Does anyone have an idea how to fix this problem ? Thank you ( We also disabled AOT has it slowdown the compile)

Rémy Binsztock
@rbinsztock
adding --poll=2000 flag into ng serve "fixed" the reload change
bradws
@bradws
I have uninstalled angular 7.x and node. Rebooted my Windows 7 box and re-installed latest stable of node and confirmed node and npm are installed (with the '-v' switch). Followed the normal steps to install angular (as per https://angular.io/guide/setup-local) and no errors, but when i do >ng new my-app in my Bash shell, it says: "Error: Cannot find module 'C:\Program Files\Git\node_modules\@angular\cli\bin\ng'"
Looking at my folder structure, there is no ''C:\Program Files\Git\node_modules" folder !?!
Eric
@sliceofbytes
@bradws you likely have a bad path variable for ng
try which ng in your cmd prompt
bradws
@bradws
which ng
shows "/c/Users/Brad/AppData/Roaming/npm/ng"
Eric
@sliceofbytes
that looks correct, try ng new testapp in your cmd prompt
bradws
@bradws
ng new testapp
shows error:

internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module 'C:\Program Files\Git\node_modules\@angular\cli\bin\ng'

Are the 2 script files at C:\Users\Brad\AppData\Roaming\npm\ng and C:\Users\Brad\AppData\Roaming\npm\ng .cmd possibly wrong?
Eric
@sliceofbytes
try npm install -g @angular-devkit/core
and then retry creating the app
bradws
@bradws
ok
$ npm install -g @angular-devkit/core
  • @angular-devkit/core@8.3.6
    added 12 packages from 49 contributors in 7.958s
    (seems ok)

$ ng new testapp
internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module 'C:\Program Files\Git\node_modules\@angular\cli\bin\ng'
(Hmmm !?!)

Eric
@sliceofbytes
humm, okay, try npm uninstall -g @angular/cli
bradws
@bradws
$ npm uninstall -g @angular/cli
removed 244 packages in 11.138s
(yep looks good)
Eric
@sliceofbytes
then delete C:\Users\Brad\AppData\Roaming\npm\node_modules\@angular
after that npm install -g @angular/cli
bradws
@bradws
There is no folder "C:\Users\Brad\AppData\Roaming\npm\node_modules\@angular" There is only "C:\Users\Brad\AppData\Roaming\npm\node_modules\@angular-devkit"
Eric
@sliceofbytes
okay
try re-install
npm install -g @angular/cli
then close cmd prompt, and reopen it, and try creating a new app
bradws
@bradws

$ npm install -g @angular/cli
C:\Users\Brad\AppData\Roaming\npm\ng -> C:\Users\Brad\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng

@angular/cli@8.3.6 postinstall C:\Users\Brad\AppData\Roaming\npm\node_modules\@angular\cli
node ./bin/postinstall/script.js

  • @angular/cli@8.3.6
    added 244 packages from 185 contributors in 39.559s
    (looks good. Will close the shell, and reopen...)

$ ng new testapp
internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module 'C:\Program Files\Git\node_modules\@angular\cli\bin\ng'
( ? )

Eric
@sliceofbytes
Are you using cmd prompt or git bash?
bradws
@bradws
i always use git bash for angular dev
Eric
@sliceofbytes
Try creating app in cmd prompt (non git bash) just to isolate the issue