Closed saadeghi closed 2 years ago
You can add an alias for '~bootstrap' which resolves to 'bootstrap' in svelte.config.js > kit.vite.resolve.alias
@saadeghi this commit should fix the problem
I expect this to work because this was the preprocess config of SvelteKit: https://github.com/ubeac/svelte/blob/merge-doc-site/svelte.config.js
preprocess({ scss: { importer: (url, prev) => { if (url[0] === '~') { url = path.resolve('node_modules', url.substr(1)) } return { file: url } }, }, }),
this code only handles imports inside
When I import the sass file to SvelteKit, https://github.com/ubeac/svelte/blob/merge-doc-site/src/routes/__layout.svelte
There's comes and issue with Bootstrap
I expect this to work because this was the preprocess config of SvelteKit:
https://github.com/ubeac/svelte/blob/merge-doc-site/svelte.config.js
Any ideas about this error? @TheHadiAhmadi @pournasserian