javascript - AngularJS ng serve error failed to compile error in node modules/css-loader -


i didn't encounter before when developing angular project. used angular 2 project. here error below when run command ng serve in project dir.

chunk {chartjs.module} chartjs.module.chunk.js, chartjs.module.chunk.js.map () 13.6 kb {main} [rendered] chunk {components.module} components.module.chunk.js, components.module.chunk.js.map () 268 kb {main} [rendered] chunk {dashboard.module} dashboard.module.chunk.js, dashboard.module.chunk.js.map () 64.5 kb {main} [rendered] chunk {icons.module} icons.module.chunk.js, icons.module.chunk.js.map () 184 kb {main} [rendered] chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kb [entry] [rendered] chunk {main} main.bundle.js, main.bundle.js.map (main) 82 kb {vendor} [initial] [rendered] chunk {pages.module} pages.module.chunk.js, pages.module.chunk.js.map () 18.5 kb {main} [rendered] chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 328 kb {inline} [initial] [rendered] chunk {scripts} scripts.bundle.js, scripts.bundle.js.map (scripts) 358 kb {inline} [initial] [rendered] chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 10.5 kb {inline} [initial] [rendered] chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 3.53 mb [initial] [rendered] chunk {widgets.module} widgets.module.chunk.js, widgets.module.chunk.js.map () 58.5 kb {main} [rendered]

error in ./node_modules/css-loader?{"sourcemap":false,"importloaders":1}!./node_modules/postcss-loader?{"ident":"postcss"}!./node_modules/sass-loader/lib/loader.js?{"sourcemap":false,"precision":8,"includepaths":[]}!./src/scss/style.scss module build failed: error: enoent: no such file or directory, scandir '/home/jayzdevera/documents/ad-fingerprinting/web/node_modules/node-sass/vendor' @ error (native) @ object.fs.readdirsync (fs.js:952:18) @ object.getinstalledbinaries (/home/jayzdevera/documents/ad-fingerprinting/web/node_modules/node-sass/lib/extensions.js:124:13) @ foundbinarieslist (/home/jayzdevera/documents/ad-fingerprinting/web/node_modules/node-sass/lib/errors.js:20:15) @ foundbinaries (/home/jayzdevera/documents/ad-fingerprinting/web/node_modules/node-sass/lib/errors.js:15:5) @ object.module.exports.missingbinary (/home/jayzdevera/documents/ad-fingerprinting/web/node_modules/node-sass/lib/errors.js:45:5) @ module.exports (/home/jayzdevera/documents/ad-fingerprinting/web/node_modules/node-sass/lib/binding.js:15:30) @ object. (/home/jayzdevera/documents/ad-fingerprinting/web/node_modules/node-sass/lib/index.js:14:35) @ module._compile (module.js:570:32) @ object.module._extensions..js (module.js:579:10) @ module.load (module.js:487:32) @ trymoduleload (module.js:446:12) @ function.module._load (module.js:438:3) @ module.require (module.js:497:17) @ require (internal/module.js:20:19) @ object. (/home/jayzdevera/documents/ad-fingerprinting/web/node_modules/sass-loader/lib/loader.js:3:14) @ ./src/scss/style.scss 4:14-195 @ multi ./src/scss/style.scss

webpack: failed compile.

my node v 8.4.0

would appreciate if can help. in advance.

try including built version of chart.js:  "scripts": ["../node_modules/chart.js/dist/chart.bundle.min.js"],  or need add path .angular-cli.json this:     "apps": [          "scripts": [              "../node_modules/chart.js/src/chart.js",          ],      ] 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -