(foal CLI) TypeError: Cannot set property 'proxyConfig' of undefined
See original GitHub issueVersion of FoalTS: 2.5.0
Steps:
- foal createapp portal
- npm i -g @angular/cli
- ng new portal-frontend
- cd portal
- foal connect angular …/portal-frontend
Error:
C:\Users\Luciano\Documents\GitHub\forjagames-portal\portal>foal connect angular ../portal-frontend
CREATE ..\portal-frontend\src\proxy.conf.json
UPDATE ..\portal-frontend\package.json
UPDATE ..\portal-frontend\angular.json
(node:5548) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'proxyConfig' of undefined
at C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\lib\generate\generators\angular\connect-angular.js:38:84
at FileSystem.modify (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\lib\generate\file-system.js:245:46)
at Object.connectAngular (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\lib\generate\generators\angular\connect-angular.js:35:10)
at Command.<anonymous> (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\lib\index.js:67:24)
at Command.listener [as _actionHandler] (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\node_modules\commander\index.js:922:31)
at Command._parseCommand (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\node_modules\commander\index.js:1503:14)
at Command._dispatchSubcommand (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\node_modules\commander\index.js:1443:18)
at Command._parseCommand (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\node_modules\commander\index.js:1460:12)
at Command.parse (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\node_modules\commander\index.js:1292:10)
at Object.<anonymous> (C:\Users\Luciano\AppData\Roaming\npm\node_modules\@foal\cli\lib\index.js:152:9)
(node:5548) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:5548) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Proxy configuration did not working with angular CLI
In Angular2 package.json I changed start procedure to "start": "ng serve --proxy-config proxy.config.json" When I type inside commander npm ...
Read more >AW: Problems Installing Flash SDK according to ...
Hi Micheal, well it seems that the download itself seems to be working, it even confirms that the artifacts are all installed successfully....
Read more >Untitled
Autobase co nz armstrong prestige, No te dejare ir salsa, Zhuo yao ji song, ... Cifrare messaggi, Bibenzyl physical properties, Good funeral home...
Read more >Untitled
#scenes Star dance center monterey park, Via dell'oceano indiano, Tameiki no gogo mangapark, Sim taxi 3d funny games, Office stationery online bangalore, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This week or next week.
Oh glad to hear it! Feel free to share your videos on the awesome page when they’re published 👍
Fixed in v2.6.0