[Bug] can't handle relative path properly #3
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/live-server.nvim#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Info
nvim --version: 0.9.4<node-package-manager> --version: 10.2.4live-server --version: live-server 1.2.2Configuration
use
lazyand just useconfig = trueDescription
I am sure that
miniVue.esm.jsis exist and can usegfto jump to this file, however, browser report thatthe same plugin in vscode is work properly, so I guess it is a bug of this plugin
Hey, sorry about the issue - can you provide a boilerplate so I can duplicate the error?
Thanks.
Exact same setup works for me.
https://www.npmjs.com/package/live-server checkout the follwoing
@shellRaining. Thanks for the response v0ry as well.
Hey there,
I am facing a similar issue when trying to link css files to my html.
If the file is in (or is a child of) the current directory the css will apply to my webpage, however when trying to move up the directory tree (i.e. using
../) the css is no longer applied.I found a similar issue with the vscode plugin and someone hinted that it may be due to the web root of the live server.
However, I know for a fact that the above (css file out of scope of html) is not an issue in vscode as I have tested it.
So this brings me to wonder how was it configured in vscode and how I could adapt it to this plugin.
@kxrur thanks for the update. how does this work with using
live-servervia the CLI (can you start it in a different directory or with different arguments and it'll work)? From what you linked, it seems like that could be a configuration error/confusion. Can you provide screenshots/config for this (basicindex.html,styles/index.cssor something like that) so I can replicate and fix this issue?Sure thing! I am pretty new to this so I did not have the courage to go through the various arguments of live-server in the CLI, hopefully this below is eough.
Info
nvim --version: v0.10.0<node-package-manager> --version: 10.2.4live-server --version: 1.2.2Configuration
Description
given a set-up with the following structure:
and the following index and style files respectively
Test 1: run

LiveServerStartfrom nvim's command lineTest 2: run


live-serverfrom a terminal-- > chose html
Test 3: run

cd html/ && live-serverfrom a terminalTest 4: click on 'Go Live' in vscode

@shellRaining reopen if still occurring.