Expressworks Stylish CSS question

Here’s the code I have so far:

var express = require('express');
var http = require('http');
var app = express();

  { src: __dirname + '/public' }
));[3], function (req, res) {
  var value = req.body.str.split('').reverse().join('');


The console.log statement is printing:

Cannot GET /main.css

I think that’s happening because the .styl file isn’t getting translated into a .css file properly. I tried messing with this line:

  { src: __dirname + '/public' }

using stuff like process.argv[3] under the assumption that the parameter getting passed in by expressworks is part of the solution but I still kept getting this result. Any help is appreciated, I’ve gotten 4-5 exercises done since my last question but this one has me stumped again.

P.S. I was looking up examples online and they all match the above line so that’s why I wrote it back as that after testing other options.

Do you have a static files route?

I don’t. I tried adding this line to the code after reading the article you linked:


I’m still getting the same error though.