Bug Report #13

Closed
opened 2024-07-21 08:39:41 +00:00 by elementtest · 6 comments
elementtest commented 2024-07-21 08:39:41 +00:00

Info

  • Operating System: Ubuntu
  • nvim --version: v.0.11.0
  • Node package manager: v21.7.3
  • <node-package-manager> --version: v21.7.3
  • live-server --version: 1.2.2

Configuration

return {
'barrett-ruth/live-server.nvim',
build = 'pnpm add -g live-server',
cmd = { 'LiveServerStart', 'LiveServerStop' },
config = true
}

require('nvim-package-manager').setup {
    -- Any special plugin config
    {
        'barrett-ruth/live-server.nvim',
    }
}

Description

When I run :LiveServerStart command in neovim it is giving me error:

Cannot GET /

<!-- Be sure you can affirm the following: --> <!-- 1. live-server is up to date and functioning correctly (run `live-server` in the terminal) --> <!-- 2. I have searched the issue tracker and not found a similar issue --> ### Info - Operating System: Ubuntu - `nvim --version`: v.0.11.0 - Node package manager: v21.7.3 - `<node-package-manager> --version`: v21.7.3 - `live-server --version`: 1.2.2 ### Configuration <!-- Replace the below with your live-server.nvim setup --> return { 'barrett-ruth/live-server.nvim', build = 'pnpm add -g live-server', cmd = { 'LiveServerStart', 'LiveServerStop' }, config = true } <!-- Replace the below with your *neovim* package manager setup --> ```lua require('nvim-package-manager').setup { -- Any special plugin config { 'barrett-ruth/live-server.nvim', } } ``` </details> ### Description When I run :LiveServerStart command in neovim it is giving me error: Cannot GET /
elementtest commented 2024-07-21 17:00:12 +00:00

I think I've narrowed the problem down a bit. It seems to be stemming from this when i open developer tools in the browser:
Content-Security-Policy: The page’s settings blocked the loading of a resource (img-src) at http://127.0.0.1:5555/favicon.ico because it violates the following directive: “default-src 'none'”.

When I use the live-server command in the terminal there is no problem. Only when using this plugin do i encoutner the issue

I think I've narrowed the problem down a bit. It seems to be stemming from this when i open developer tools in the browser: Content-Security-Policy: The page’s settings blocked the loading of a resource (img-src) at http://127.0.0.1:5555/favicon.ico because it violates the following directive: “default-src 'none'”. When I use the live-server command in the terminal there is no problem. Only when using this plugin do i encoutner the issue
elementtest commented 2024-07-21 17:54:29 +00:00

seems the most recent update fde21e3 is causing the "Cannot GET /" issue for me.

seems the most recent update fde21e3 is causing the "Cannot GET /" issue for me.
barrettruth commented 2024-07-21 18:36:45 +00:00

Can you replicate the issue please, given the files, directory locations, and cmds you run in neovim? Thanks

Can you replicate the issue please, given the files, directory locations, and cmds you run in neovim? Thanks
elementtest commented 2024-07-21 19:46:50 +00:00

To replicate issue opened up simple index.html file with boiler plate HTML and ran :LiveServerStart in neovim. This issue only happens with repo's latest commit

To replicate issue opened up simple index.html file with boiler plate HTML and ran :LiveServerStart in neovim. This issue only happens with repo's latest commit
barrettruth commented 2024-07-22 00:14:37 +00:00

should be fixed in most recent commit

should be fixed in most recent commit
elementtest commented 2024-07-22 01:41:50 +00:00

works now, thank you

works now, thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/live-server.nvim#13
No description provided.