-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Hi,
Firstly thanks for making this great library. I'm trying to get to get it setup with Svelte-Kit however importing Image
gives me this error:
ENOENT: no such file or directory, open '/Users/richard/Documents/Personal sites/r-bt.com/node_modules/blurhash/src/index.ts'
Steps to reproduce
- Create new Svelte-Kit project (issue present on both JS & TS projects
- Install svelte-image
- Add
svelte-image
tosvelte.config.cjs
const image = require('svelte-image');
/** @type {import('@sveltejs/kit').Config} */
module.exports = {
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
},
preprocess: {
...image()
}
};
- Import
Image
component - Run the dev server
Virgiel, mdizo, SumitBando, LucasRitossa, av8ta and 22 more
Metadata
Metadata
Assignees
Labels
No labels