ubeac / svelte

Accelerate your Svelte development with uBeac's powerful and easy-to-use UI components
https://svelte.ubeac.io
MIT License
37 stars 6 forks source link

Cannot find module '@app/components' imported from #60

Closed TheHadiAhmadi closed 2 years ago

TheHadiAhmadi commented 2 years ago
import { get_current_component, onDestroy, onMount } from 'svelte/internal';
import { Icon } from '@app/components';
import { forwardEventsBuilder } from '@app/directives';
import { classname, condition } from '@app/utils';

Cannot find module '@app/components' imported from '/Files/files/github/svelte/package/components/alert/Alert.svelte' Error: Cannot find module '@app/components' imported from '/Files/files/github/svelte/package/components/alert/Alert.svelte' at viteResolve (/Files/files/github/ubeac-test/node_modules/vite/dist/node/chunks/dep-8f5c9290.js:50310:25) at nodeImport (/Files/files/github/ubeac-test/node_modules/vite/dist/node/chunks/dep-8f5c9290.js:50345:15) at ssrImport (/Files/files/github/ubeac-test/node_modules/vite/dist/node/chunks/dep-8f5c9290.js:50241:20) at eval (/@fs/Files/files/github/svelte/package/components/alert/Alert.svelte:11:37) at async instantiateModule (/Files/files/github/ubeac-test/node_modules/vite/dist/node/chunks/dep-8f5c9290.js:50286:9

TheHadiAhmadi commented 2 years ago

https://github.com/sveltejs/kit/issues/1950#issuecomment-1137055777

TheHadiAhmadi commented 2 years ago

https://github.com/sveltejs/kit/pull/2453

TheHadiAhmadi commented 2 years ago

if we change @app/ to $lib/ the problem will be solved