https://github.com/iroco-co/sveltekit-quirrel-esm
small crontab app with quirrel
https://github.com/iroco-co/sveltekit-quirrel-esm
Last synced: 3 months ago
JSON representation
small crontab app with quirrel
- Host: GitHub
- URL: https://github.com/iroco-co/sveltekit-quirrel-esm
- Owner: iroco-co
- License: mit
- Created: 2023-11-03T10:24:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-09T15:16:32.000Z (over 1 year ago)
- Last Synced: 2023-12-09T16:27:35.786Z (over 1 year ago)
- Language: TypeScript
- Size: 622 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sveltekit-quirrel-esm
[](https://github.com/iroco-co/sveltekit-quirrel-esm/actions/workflows/build.yaml)A crontab sveltekit app that works with [quirrel](https://quirrel/dev).
Now there is a clash between luxon and es6 settings :
When launching "production" version with node:
```shell
npm run prod
```Then loading the home page is generating a 500 error with:
```shell
Listening on 0.0.0.0:3000
file:///home/dev/src/sveltekit-quirrel-esm/build/server/chunks/_server.ts-f169324c.js:11
import require$$0$4 from 'luxon';
^^^^^^^^^^^^
SyntaxError: The requested module 'luxon' does not provide an export named 'default'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:131:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:213:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async Promise.all (index 1)
at async render_page (file:///home/dev/src/sveltekit-quirrel-esm/build/server/index.js:3161:19)
at async resolve (file:///home/dev/src/sveltekit-quirrel-esm/build/server/index.js:3886:24)
at async respond (file:///home/dev/src/sveltekit-quirrel-esm/build/server/index.js:3772:22)
at async Array.ssr (file:///home/dev/src/sveltekit-quirrel-esm/build/handler.js:1221:3)
```
For more information see [this issue](https://github.com/quirrel-dev/quirrel/issues/1165)## Creating the project
Created with:```bash
npm create svelte@latest sveltekit-quirrel-esm
```Then updated to create a link with quirrel
## Quirrel setting
You must launch quirrel, with docker it is:
```shell
docker run -ti -p 9181:9181 -e PASSPHRASES=quirrel_passphrase ghcr.io/quirrel-dev/quirrel:1.13.4
```Once you've ran quirrel, you have to generate a token:
```bash
npm run initQuirrel
```## Building
To create a production version of your app:
```bash
npm ci
npm run dev
```To build a production version:
```bash
npm run build
```You can preview the production build with `npm run preview`.