Peek error: Module not found ....main.bundle.js
See original GitHub issueDescribe the bug After installing the plugin through packer and installing deno I get the error:
Peek error: error: Module not found "/home/mine/.local/share/nvim/site/pack/packer/start/peek.nvim/public/main.bundle.js"
To Reproduce
Attempt to run :PeekOpen
on a fresh install
Expected behavior A window to open with the markdown preview
Desktop:
- OS: [windows wsl ubuntu]
nvim --version
:
NVIM v0.9.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
deno --version
:
deno 1.28.1 (release, x86_64-unknown-linux-gnu)
v8 10.9.194.1
typescript 4.8.3
- plugin setup:
use({ 'toppair/peek.nvim', run = 'deno task --quiet build:fast' })
-- default config:
require('peek').setup({
auto_load = true, -- whether to automatically load preview when
-- entering another markdown buffer
close_on_bdelete = true, -- close preview window on buffer delete
syntax = true, -- enable syntax highlighting, affects performance
theme = 'dark', -- 'dark' or 'light'
update_on_change = true,
-- relevant if update_on_change is true
throttle_at = 200000, -- start throttling when file exceeds this
-- amount of bytes in size
throttle_time = 'auto', -- minimum amount of time in milliseconds
-- that has to pass before starting new render
})
vim.api.nvim_create_user_command('PeekOpen', require('peek').open, {})
vim.api.nvim_create_user_command('PeekClose', require('peek').close, {})
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Module not found: Error: Can't resolve 'bundle.js' in '/Users ...
I cannot get it to compile a very basic single line javascript application. I have installed and uninstalled it multiple times. It's just...
Read more >Bundle fails with webpack 5.1.3: Module not found: Error
[Figwheel] Successfully compiled build dev to "target/public/cljs-out/dev/main.js" in 28.101 seconds. [Figwheel] Bundling: npx webpack ...
Read more >Bundling Your JavaScript Library with Rollup | Risan Bagja
Let's bundle our main.js module into an AMD module: $ rollup main.js --file ... If not set, it will look for the rollup.config.js...
Read more >How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
Rollup is a next-generation JavaScript module bundler. ... -rollup/src/scripts/main.js 12:64 error Missing semicolon semi ✖ 1 problem (1 error, 0 warnings).
Read more >JavaScript Modules Part 2: Module Bundling - freeCodeCamp
To get around this problem, we bundle, or “concatenate” all our files ... module(s) starting at main.js into a single file called bundle.js:....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The order should be install deno first and then install the plugin. Deno is also required to build the app. Could you remove the plugin and install it again? Looks like build files are missing.
If that doesn’t work, provide the output of
cd /home/mine/.local/share/nvim/site/pack/packer/start/peek.nvim && deno task build:debug
Leaving this comment for posterity’s sake, the issue is with wsl. In order for wsl to run gtk apps with out installing a third party x server, wsl must be up to date and the windows build has to be 21364 or higher.
https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
https://github.com/microsoft/wslg/wiki/Diagnosing-"cannot-open-display"-type-issues-with-WSLg