Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR: on Running 'ng serve' #177

Open
katienoj opened this issue Mar 2, 2021 · 22 comments
Open

ERR: on Running 'ng serve' #177

katienoj opened this issue Mar 2, 2021 · 22 comments

Comments

@katienoj
Copy link

katienoj commented Mar 2, 2021

Hi Team, I am getting the below error everytime I setup the App. I have tried to manually add the required module to no avail. Kindly help.

i 「wds」: webpack output is served from /
i 「wds」: 404s will fallback to //index.html


chunk {main} main.js, main.js.map (main) 1.21 MB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 269 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {scripts} scripts.js, scripts.js.map (scripts) 584 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.47 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 13.3 MB [initial] [rendered]
Date: 2021-03-02T02:16:48.764Z - Hash: f13e08243850e1ac6726 - Time: 56312ms

ERROR in ./node_modules/ng2-carouselamos/fesm2015/ng2-carouselamos.js
Module not found: Error: Can't resolve 'lodash.isequal' in 'C:\Users\Admin\Desktop\projects\Pharmacy-Mangment-System\node_modules\ng2-carouselamos\fesm2015'
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
i 「wdm」: Failed to compile.
@katienoj
Copy link
Author

katienoj commented Mar 2, 2021

error

Additional details attached. From webpage.

@LalanaChami
Copy link
Owner

Hi @katienoj , If your global angular-cli is higher than 8.x.x can you downgrade the cli version to any 8.x.x and rebuild . Because some dependencies like ng2-carouselamos cannot be compiled in higher ng-cli versions.

@katienoj
Copy link
Author

katienoj commented Mar 5, 2021

@LalanaChami, I downgraded a day ago. New kinds of errors have emerged

ERROR in node_modules/@tensorflow/tfjs-layers/dist/layers/convolutional_recurrent.d.ts:19:45 - error TS2304: Cannot find name 'Omit'.

19 declare interface ConvRNN2DCellArgs extends Omit<SimpleRNNCellLayerArgs, 'units'> {
~~~~
node_modules/@tensorflow/tfjs-layers/dist/layers/convolutional_recurrent.d.ts:101:53 - error TS2304: Cannot find name 'Omit'.

101 export declare interface ConvLSTM2DCellArgs extends Omit<LSTMCellLayerArgs, 'units'>, ConvRNN2DCellArgs {
~~~~
node_modules/@tensorflow/tfjs-layers/dist/layers/convolutional_recurrent.d.ts:119:49 - error TS2304: Cannot find name 'Omit'.

119 export declare interface ConvLSTM2DArgs extends Omit<LSTMLayerArgs, 'units' | 'cell'>, ConvRNN2DLayerArgs {
~~~~
node_modules/angular-google-charts/lib/components/chart-editor/chart-editor.component.d.ts:14:9 - error TS1086: An accessor cannot be declared in an ambient context.

14 get initialized$(): import("rxjs").Observable<google.visualization.ChartEditor>;
~~~~~~~~~~~~
node_modules/angular-google-charts/lib/components/chart-wrapper/chart-wrapper.component.d.ts:25:9 - error TS1086: An accessor cannot be declared in an ambient context.

25 get chart(): google.visualization.ChartBase | null;
~~~~~
node_modules/angular-google-charts/lib/components/chart-wrapper/chart-wrapper.component.d.ts:26:9 - error TS1086: An accessor cannot be declared in an ambient context.

26 get wrapperReady$(): import("rxjs").Observable<google.visualization.ChartWrapper>;
~~~~~~~~~~~~~
node_modules/angular-google-charts/lib/components/chart-wrapper/chart-wrapper.component.d.ts:27:9 - error TS1086: An accessor cannot be declared in an ambient context.

27 get chartWrapper(): google.visualization.ChartWrapper | null;
~~~~~~~~~~~~
node_modules/angular-google-charts/lib/components/chart-wrapper/chart-wrapper.component.d.ts:28:9 - error TS1086: An accessor cannot be declared in an ambient context.

28 set chartWrapper(wrapper: google.visualization.ChartWrapper);
~~~~~~~~~~~~
node_modules/angular-google-charts/lib/components/control-wrapper/control-wrapper.component.d.ts:79:9 - error TS1086: An accessor cannot be declared in an ambient context.

79 get wrapperReady$(): import("rxjs").Observable<google.visualization.ControlWrapper>;
~~~~~~~~~~~~~
node_modules/angular-google-charts/lib/components/control-wrapper/control-wrapper.component.d.ts:80:9 - error TS1086: An accessor cannot be declared in an ambient context.

80 get controlWrapper(): google.visualization.ControlWrapper | null;
~~~~~~~~~~~~~~
node_modules/angular-google-charts/lib/components/google-chart/google-chart.component.d.ts:82:9 - error TS1086: An accessor cannot be declared in an ambient context.

82 get chart(): google.visualization.ChartBase | null;
~~~~~
node_modules/angular-google-charts/lib/components/google-chart/google-chart.component.d.ts:83:9 - error TS1086: An accessor cannot be declared in an ambient context.

83 get wrapperReady$(): import("rxjs").Observable<google.visualization.ChartWrapper>;
~~~~~~~~~~~~~
node_modules/angular-google-charts/lib/components/google-chart/google-chart.component.d.ts:84:9 - error TS1086: An accessor cannot be declared in an ambient context.

84 get chartWrapper(): google.visualization.ChartWrapper;
~~~~~~~~~~~~
node_modules/angular-google-charts/lib/components/google-chart/google-chart.component.d.ts:85:9 - error TS1086: An accessor cannot be declared in an ambient context.

85 set chartWrapper(wrapper: google.visualization.ChartWrapper);
~~~~~~~~~~~~

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
i 「wdm」: Failed to compile.

@katienoj
Copy link
Author

katienoj commented Mar 5, 2021

I have downgraded to the following version (details>>>>>):

Package Version

@angular-devkit/architect 0.803.25
@angular-devkit/build-angular 0.803.25
@angular-devkit/build-optimizer 0.803.25
@angular-devkit/build-webpack 0.803.25
@angular-devkit/core 8.3.25
@angular-devkit/schematics 8.3.25
@angular/cdk 8.2.3
@angular/cli 8.3.25
@angular/material 8.2.3
@ngtools/webpack 8.3.25
@schematics/angular 8.3.25
@schematics/update 0.803.25
rxjs 6.4.0
typescript 3.5.3
webpack 4.39.2

Kindly share the correct version you are running.

@achaq
Copy link

achaq commented Apr 24, 2021

hello,
is there any update on this problem ?

thank you.

@katienoj
Copy link
Author

This was sorted 🤗

@sh4im
Copy link

sh4im commented Jun 27, 2021

same problem here

@FROST03-cyber
Copy link

mine when i run ng serve its taking me to a blank page

@FROST03-cyber
Copy link

how should i solve this???

@iaMeteor
Copy link

same question here
ERROR in ./node_modules/ng2-carouselamos/fesm2015/ng2-carouselamos.js
Module not found: Error: Can't resolve 'lodash.isequal' in '/etc/yum.repos.d/Pharmacy-Mangment-System/node_modules/ng2-carouselamos/fesm2015'
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
ℹ 「wdm」: Failed to compile.

any suggestion?

@golu7679
Copy link

install lodash.isequal in your project

@iaMeteor
Copy link

install lodash.isequal in your project

thanks.
but new problem occured.

(node:9274) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:9274) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
(node:9274) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
(node:9274) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
connection failed!

@golu7679
Copy link

may be mongoose is not installed properly

@iaMeteor
Copy link

may be mongoose is not installed properly

could you connect to author's db "mongodb+srv://lalana:[email protected]/pharmacy?retryWrites=true&w=majority"?

@golu7679
Copy link

may be mongoose is not installed properly

could you connect to author's db "mongodb+srv://lalana:[email protected]/pharmacy?retryWrites=true&w=majority"?

you cannot connect with the author's db, create your own mongodb connection url and paste in your project.

@iaMeteor
Copy link

may be mongoose is not installed properly

could you connect to author's db "mongodb+srv://lalana:[email protected]/pharmacy?retryWrites=true&w=majority"?

you cannot connect with the author's db, create your own mongodb connection url and paste in your project.

oh thx.

and where is the db file?

@golu7679
Copy link

what db file?

@katienoj
Copy link
Author

There's need to simplyfy the deployment process for the application.

@iaMeteor
Copy link

There's need to simplyfy the deployment process for the application.

any suggestions for deploying?

@Ajeet86511
Copy link

can anyone please give the credentials for admin login

@Ajeet86511
Copy link

hello katienoj can you put the admin login credentilal in the comment

@katienoj
Copy link
Author

katienoj commented Nov 6, 2023

hello katienoj can you put the admin login credentilal in the comment

Hi, did this get sorted. Sorry for the very late response. Working to improve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants