V
V
vita_run2017-12-04 23:45:13
css
vita_run, 2017-12-04 23:45:13

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)
5a25b37f799cd593878790.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anatoly, 2017-12-04
@trofimovdev

Well, they all wrote to you:

Path must be a string. Received { src: 'C:\\nir7\\app/public' }

They screwed up somewhere, since instead of the path you get this.

M
Monty Python, 2017-12-05
@Austin1

src: 'C:\\nir7\\app/public'

slashes in different directions before app and after
it should probably be like this:
src: 'C:\\nir7\\app\public'

E
Egor Zhivagin, 2017-12-05
@Krasnodar_etc

Show the line where this path is written - src: 'C:\\nir7\\app/public'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question