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 to svelte.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
Hi,
Firstly thanks for making this great library. I'm trying to get to get it setup with Svelte-Kit however importing
Imagegives 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
svelte-imagetosvelte.config.cjsImagecomponent