azouaoui-med / angular-pro-sidebar

Responsive sidebar template with dropdown menu built with angular 7 and bootstrap 4
MIT License
209 stars 132 forks source link

found an issue when run script 'ng serve' #6

Open 839928622 opened 4 years ago

839928622 commented 4 years ago

ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/styles.scss) Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Cannot find module 'node-sass' Require stack:

and then I run 'npm install sass-loader node-sass webpack --save-dev', it showed: ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/dist/cjs.js??ref--14-3!./src/styles.scss) Module build failed (from ./node_modules/sass-loader/dist/cjs.js): ValidationError: Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.

Could you please help me out with this ?

ALEXOTANO commented 4 years ago

Try re-compiling sass files.

npm rebuild node-sass --force

if doesn't work

npm install node-sass`

And try again. =)

839928622 commented 4 years ago

thank you so much , It works .

sameerrede commented 4 years ago

C:\work\projects\angular-pro-sidebar-gh-pages>ng serve Your global Angular CLI version (8.3.24) is greater than your local version (7.1.2). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false". **Schema validation failed with the following errors: Data path ".builders['app-shell']" should have required property 'class'. Error: Schema validation failed with the following errors: Data path ".builders['app-shell']" should have required property 'class'. at MergeMapSubscriber.project (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\@angular-devkit\core\src\workspace\workspace.js:215:42) at MergeMapSubscriber._tryNext (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\operators\mergeMap.js:69:27) at MergeMapSubscriber._next (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\operators\mergeMap.js:59:18) at MergeMapSubscriber.Subscriber.next (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\Subscriber.js:67:18) at MergeMapSubscriber.notifyNext (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\operators\mergeMap.js:92:26) at InnerSubscriber._next (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\InnerSubscriber.js:28:21) at InnerSubscriber.Subscriber.next (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\Subscriber.js:67:18) at MapSubscriber._next (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\operators\map.js:55:26) at MapSubscriber.Subscriber.next (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\Subscriber.js:67:18) at SwitchMapSubscriber.notifyNext (C:\work\projects\angular-pro-sidebar-gh-pages\node_modules\rxjs\internal\operators\switchMap.js:86:26)