Skip to content
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

Example not working out of the box. Error: Could not resolve entry module (rollup.config.js) #23

Closed
bhoov opened this issue Jun 6, 2024 · 7 comments

Comments

@bhoov
Copy link
Contributor

bhoov commented Jun 6, 2024

First off, I'm really excited to use this plugin to make an interactive, tutorial style website. It looks really neat! Unfortunately, I am unable to get the minimum example working out of the box.

To reproduce:

quarto use template jimjam-slam/sverto # Create new project `test-sverto`
cd test-sverto
npm install
quarto render example.qmd # ERROR

This last line produces the error [!] Error: Could not resolve entry module (rollup.config.js), full output below. I get the same error for quarto preview example.qmd and npm run build. I am new to the quarto ecosystem -- any tips?

hoo@hoo-M1 test-sverto % quarto render example.qmd 
pandoc 
  to: html
  output-file: example.html
  standalone: true
  section-divs: true
  html-math-method: mathjax
  wrap: none
  default-image-extension: png
  
metadata
  document-css: false
  link-citations: true
  date-format: long
  lang: en
  title: Sverto example
  date: last-modified
  sverto:
    use:
      - Circles.svelte
  

> svelte-app@1.0.0 build
> rollup -c rollup.config.js --configQuartoOutPath=./ --configSvelteInPaths=Circles.svelte:

[!] Error: Could not resolve entry module (rollup.config.js).
Error: Could not resolve entry module (rollup.config.js).
    at error (/Users/hoo/Projects/test-sverto/node_modules/rollup/dist/shared/rollup.js:198:30)
    at ModuleLoader.loadEntryModule (/Users/hoo/Projects/test-sverto/node_modules/rollup/dist/shared/rollup.js:22306:20)
    at async Promise.all (index 0)

Error running filter /Applications/quarto/share/filters/main.lua:
...ts/test-sverto/_extensions/jimjam-slam/sverto/sverto.lua:104: attempt to concatenate a nil value (local 'svelteResult')
stack traceback:
        [C]: in ?
        [C]: in method 'walk'
        /Applications/quarto/share/filters/main.lua:224: in local 'checked_walk'
        /Applications/quarto/share/filters/main.lua:276: in function 'run_emulated_filter'
        /Applications/quarto/share/filters/main.lua:942: in local 'callback'
        [string "..."]:1888: in field 'withScriptFile'
        /Applications/quarto/share/filters/main.lua:958: in upvalue 'run_emulated_filter_chain'
        /Applications/quarto/share/filters/main.lua:996: in function </Applications/quarto/share/filters/main.lua:993>
stack traceback:
        /Applications/quarto/share/filters/main.lua:224: in local 'checked_walk'
        /Applications/quarto/share/filters/main.lua:276: in function 'run_emulated_filter'
        /Applications/quarto/share/filters/main.lua:942: in local 'callback'
        [string "..."]:1888: in field 'withScriptFile'
        /Applications/quarto/share/filters/main.lua:958: in upvalue 'run_emulated_filter_chain'
        /Applications/quarto/share/filters/main.lua:996: in function </Applications/quarto/share/filters/main.lua:993>
@bhoov
Copy link
Contributor Author

bhoov commented Jun 6, 2024

This error has been resolved by updating quarto from v1.4.555 to v1.5.42.

@bhoov bhoov closed this as completed Jun 6, 2024
@bhoov
Copy link
Contributor Author

bhoov commented Jun 6, 2024

Ok this bug is back after restarting my computer. Not sure why...

@bhoov bhoov reopened this Jun 6, 2024
@jimjam-slam jimjam-slam mentioned this issue Jun 7, 2024
jimjam-slam added a commit that referenced this issue Jun 7, 2024
Fixes #24, fixes #23, bumps Sverto to v1.0.1
@jimjam-slam
Copy link
Owner

I've merged a fix in for this, @bhoov! Try re-running quarto use template ... so you can get the new version and let me know how you go 😊

@bhoov
Copy link
Contributor Author

bhoov commented Jun 7, 2024

Incredible, you fixed this so quickly and the example works for me out of the box now. Thank you!!

@bhoov
Copy link
Contributor Author

bhoov commented Jun 7, 2024

Unfortunately, I am still having issues integrating sverto into an existing quarto website. After running quarto use template jimjam-slam/sverto into an existing website and running quarto preview example.qmd, I get:

Error running filter sverto-prerender.lua:
cannot open sverto-prerender.lua: No such file or directory

I will open a new issue in the morning when I can make a minimally reproducible example. Ty!

@jimjam-slam
Copy link
Owner

That'd be great, @bhoov! I'll have more time to take a look later in the day, so if you can get a reprex going in the mean time, I'd be happy to take a look 😊 Apologies for the trouble you're having!

@bhoov
Copy link
Contributor Author

bhoov commented Jun 7, 2024

If I can get it working it will have been worth all the trouble :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants