Open theogf opened 2 years ago
The output of npm dev
is hidden by the command; this is probably throwing an error. You can try going to the Pollen.FRONTEND_DIR
directory and running npm dev
manually to see if an error is shown.
I just had the same error.
The output of
npm dev
is hidden by the command; this is probably throwing an error. You can try going to thePollen.FRONTEND_DIR
directory and runningnpm dev
manually to see if an error is shown.
When I follow these instructions, this is the result. I'm not sure what the next step is.
$ npm run dev
> juliadocs@0.0.1 dev
> vite dev
file:///home/sethaxen/.julia/scratchspaces/c88717ad-5130-4874-a664-5a9aba5ec443/frontend/node_modules/vite/bin/vite.js:7
await import('source-map-support').then((r) => r.default.install())
^^^^^
SyntaxError: Unexpected reserved word
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
at async link (internal/modules/esm/module_job.js:42:21)
In case it's useful, I did get some error upon the first run of servedocs
:
It's funny I was just trying running this again starting from scratch. Aaaand I still have the same issue...
This is my error though
shell> npm run dev
> juliadocs@0.0.1 dev
> svelte-kit dev
file:///home/theo/.julia/scratchspaces/c88717ad-5130-4874-a664-5a9aba5ec443/frontend/node_modules/@sveltejs/kit/dist/cli.js:1073
} else if (allow?.length && cwd) {
^
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
Seems related to node versions and untested interplay with OS. The best way to fix this on your system would be to run Pollen.servedocs
with the frontend = false
kwarg and then run the frontend manually.
To do that, clone it, running:
git clone https://github.com/lorenzoh/pollenjl-frontend
cd pollenjl-frontend
npm install
npm run dev
Am debugging with @theogf atm
When trying to serve the docs (from
serve.jl
generated with PkgTemplates) I get the following:localhost:3000
returns nothing and8000
shows this