-
Notifications
You must be signed in to change notification settings - Fork 48
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
Peek error: error: Module not found .../public/main.bundle.js
#47
Comments
Exactly the same environment and same problem. Did the same workarounds and got the same errors |
.../public/main.bundle.js
I have the exact same issue, but I installed it using Packer. After playing around with different deno versions, I got a better error message (with deno v1.25.0):
Only This is my first time working with deno so I don't really know how to fix this. I tried building |
I replaced the bundling process with 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 |
I am trying to use your version, @cloudsftp , I still get the same error. Am I doing something wrong? |
@fengzhiken Unfortunately, my version only works with older versions of deno. Refer to the pull request, I linked. |
same problem, env as follow ❱❱❱ nvim --version
NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3
系统 vimrc 文件: "$VIM/sysinit.vim"
$VIM 预设值: "/opt/homebrew/Cellar/neovim/0.9.1/share/nvim"
Run :checkhealth for more info
❱❱❱ deno --version
deno 1.34.3 (release, aarch64-apple-darwin)
v8 11.5.150.2
typescript 5.0.4 |
facing the same problem when I'm trying out this tool, in the meantime, I think u guys can try this markdown preview tool |
This plugin is laggin with puml. Periodically raise strange exceptions when code is ok |
Facing the same problem.
Now this is the output for peek.nvim (master) » deno task build:debug ~/.local/share/nvim/site/pack/packer/start/peek.nvim
Task build:debug DEBUG=true deno task build
Task build deno run --allow-run --allow-net --allow-read --allow-write --allow-env --no-check scripts/build.js
┌─────────────────────────┬────────┬────────────────────────────┐
│ (idx) │ size │ modified │
├─────────────────────────┼────────┼────────────────────────────┤
│ style.css │ 3344 │ "11/08/2023, 15:44:43.084" │
│ index.html │ 691 │ "11/08/2023, 15:44:43.084" │
│ webview.js │ 291446 │ "11/08/2023, 15:44:43.220" │
│ github-markdown.min.css │ 20677 │ "11/08/2023, 15:44:43.540" │
│ script.bundle.js │ 15840 │ "11/08/2023, 15:44:43.168" │
└─────────────────────────┴────────┴────────────────────────────┘
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
Warning "deno bundle" is deprecated and will be removed in the future.
Use alternative bundlers like "deno_emit", "esbuild" or "rollup" instead.
Warning "deno bundle" is deprecated and will be removed in the future.
Use alternative bundlers like "deno_emit", "esbuild" or "rollup" instead.
Warning "deno bundle" is deprecated and will be removed in the future.
Use alternative bundlers like "deno_emit", "esbuild" or "rollup" instead.
Download https://cdn.skypack.dev/-/@types/[email protected]/dist=es2019,mode=typ
Bundle file:///home/pabloqpacin/.local/share/nvim/site/pack/packer/start/peek.nvim/app/src/webview.ts
error: Node specifiers have not yet been implemented for this subcommand (https://github.com/denoland/deno/issues/15960). Found: node:punycode
Bundle file:///home/pabloqpacin/.local/share/nvim/site/pack/packer/start/peek.nvim/client/src/script.ts
Emit "public/script.bundle.js" (15.47KB)
┌─────────────────────────┬────────┬────────────────────────────┐
│ (idx) │ size │ modified │
├─────────────────────────┼────────┼────────────────────────────┤
│ style.css │ 3344 │ "11/08/2023, 15:44:43.084" │
│ index.html │ 691 │ "11/08/2023, 15:44:43.084" │
│ webview.js │ 291446 │ "11/08/2023, 15:47:02.870" │
│ github-markdown.min.css │ 20677 │ "11/08/2023, 15:44:43.540" │
│ script.bundle.js │ 15840 │ "11/08/2023, 15:47:03.478" │
└─────────────────────────┴────────┴────────────────────────────┘ Notably, no |
Same problem in NixOS. |
Can confirm the tweaks at #50 fix the issue 👍 |
I had the same problem and implemented the four lines from the PR @pabloqpacin recommended. Ran a fresh |
Can also confirm that @pabloqpacin fix works ! Used @john-kenealy's comment above 👍 |
I had this issue as well, but using @Saimo PR and then fresh deno build solve the issue. |
@toppair Could you please check the mentioned PR and merge it? There have been multiple confirmations already about the PR fixing this issue. |
Describe the bug
I have followed the instructions provided in the repository to install the plugin.
deno
binary from the website firstlazy.nvim
package managerbuild
part of the commanddeno task --quiet build:fast
fails with an error:Steps To Reproduce
markdown
file:lua require('peek').open()
command, which throws an error:Expected behavior
A markdown preview should open when
:lua require('peek').open()
is executedDesktop (please complete the following information):
nvim --version
:deno --version
: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 ...
The text was updated successfully, but these errors were encountered: