Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to load my CSS stylesheet as a folder instead of a file #306

Open
megseoh opened this issue Apr 4, 2019 · 0 comments
Open

Attempting to load my CSS stylesheet as a folder instead of a file #306

megseoh opened this issue Apr 4, 2019 · 0 comments

Comments

@megseoh
Copy link

megseoh commented Apr 4, 2019

Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

When I run live-server on the command line in home directory for my project, it loads my index.html but does not load my stylesheet css/style.css. It's looking for a directory instead of a file. This is what appears in my Terminal:

Error: ENOTDIR: not a directory, stat '/Users/path_to_project/css/style.css/' GET /css/style.css/ 500 0.379 ms - 278

In the <head> of index.html: <link rel="stylesheet" href="css/style.css">

Software details

  • Command line used for launching live-server: live-server
  • OS: macOS Mojave 10.14.4
  • Browser (if browser related): Chrome Version 73.0.3683.86 (Official Build) (64-bit)
  • Node.js version: v10.15.3
  • live-server version: 1.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant