peek.nvim: Peek error: error: Module not found `.../public/main.bundle.js`
Describe the bug I have followed the instructions provided in the repository to install the plugin.
- Installed
denobinary from the website first - Installed the plugin using
lazy.nvimpackage manager - The
buildpart of the commanddeno task --quiet build:fastfails with an error:
error: Node specifiers have not yet been implemented for this subcommand (https://github.com/denoland/deno/issues/15960). Found: node:punycode
Steps To Reproduce
- Open NeoVim instance and a
markdownfile - Execute
:lua require('peek').open()command, which throws an error:
Peek error: error: Module not found "file:///home/kenja/.local/share/nvim/lazy/peek.nvim/public/main.bundle.js".
Expected behavior
A markdown preview should open when :lua require('peek').open() is executed
Desktop (please complete the following information):
- OS: Ubuntu
nvim --version:
NVIM v0.10.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
deno --version:
deno 1.34.2 (release, x86_64-unknown-linux-gnu)
v8 11.5.150.2
typescript 5.0.4
- plugin setup:
require('peek').setup()
Additional context
Similar issues were noted in #11, #28 and #46
Workarounds (manual installation) provided in these issues failed with the same error above error: Node specifiers ...
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 23
- Comments: 15
I had the same problem and implemented the four lines from the PR @pabloqpacin recommended. Ran a fresh
deno task --quiet buildand peek is now working as expected.Can confirm the tweaks at #50 fix the issue ๐
facing the same problem when Iโm trying out this tool, in the meantime, I think u guys can try this markdown preview tool
I replaced the bundling process with
deno_emit. This works nice.I will replace all other bundlings with this also and open a PR. In the meantime you can try my version here: https://github.com/cloudsftp/peek.nvim/tree/bundle
Facing the same problem.
:PeekOpenreturns:Now this is the output for
cd ~/.local/share/nvim/site/pack/packer/start/peek.nvim && deno task build:debug:Notably, no
peek.nvim/public/main.bundle.jsfile is created or available. A few months ago I got this up and running in both WSL_Ubuntu and Arch and loved it. Now however Iโm running Pop!_OS and there seems to be no solution but either OS.same problem, env as follow