Answer the question
In order to leave comments, you need to log in
Style.css is not loading, Am I writing the path correctly?
In the .hjs template I write:
Errors:
In the browser console : Failed to load resource: the server responded with a status of 500 (Internal Server Error)
In the console: GET /stylesheets/style.css 500 1.803 ms - -
TypeError: Path must be a string. Received { src: 'C:\\nir7\\app/public' }
at assertPath (path.js:7:11)
at Object.join (path.js:468:7)
at C:\nir7\app\node_modules \less-middleware\lib\middleware.js:163:27
at Layer.handle [as handle_request] (C:\nir7\app\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C :\nir7\app\node_modules\express\lib\router\index.js:317:13)
at C:\nir7\app\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\nir7\app\node_modules\express\lib\router\index.js:335:12)
at next (C:\nir7\app\node_modules\express\lib\router\index.js: 275:10)
at cookieParser (C:\nir7\app\node_modules\cookie-parser\index.js:56:14)
at Layer.handle [as handle_request] (C:\nir7\app\node_modules\express\lib\ router\layer.js:95:5)
Answer the question
In order to leave comments, you need to log in
Well, they all wrote to you:
Path must be a string. Received { src: 'C:\\nir7\\app/public' }
src: 'C:\\nir7\\app/public'
src: 'C:\\nir7\\app\public'
Show the line where this path is written - src: 'C:\\nir7\\app/public'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question