Git Product home page Git Product logo

Comments (5)

ezra-en avatar ezra-en commented on July 16, 2024 1

Hey, that's correct! I don't have that by default. Just adding the directory back manually got the init flow working again!

from shadcn-svelte.

AdrianGonz97 avatar AdrianGonz97 commented on July 16, 2024

Was this executed in a new project or a preexisting one? Judging by the output of the system info, it looks like an older project.

If that's the case, can you send the contents of your svelte.config.js file and your tsconfig.json?

from shadcn-svelte.

ezra-en avatar ezra-en commented on July 16, 2024

This was executed in a pre-existing SvelteKit project, yes.

`tsconfig.json`

{
	"extends": "./.svelte-kit/tsconfig.json",
	"compilerOptions": {
		"allowJs": true,
		"checkJs": true,
		"esModuleInterop": true,
		"forceConsistentCasingInFileNames": true,
		"resolveJsonModule": true,
		"skipLibCheck": true,
		"sourceMap": true,
		"strict": true
	}
	// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
	//
	// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
	// from the referenced tsconfig.json - TypeScript does not merge them in
}

`svelte.config.js`

import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://kit.svelte.dev/docs/integrations#preprocessors
	// for more information about preprocessors
	preprocess: vitePreprocess(),

	kit: {
		adapter: adapter({
			fallback: 'index.html'
		})
	}
};

export default config;

from shadcn-svelte.

ezra-en avatar ezra-en commented on July 16, 2024

This is an older project template that I had and just used to pick up an old project I needed to work with. I can try and port everything over and reinit the project (it's no biggie) but since there was an issue with what is supposed to be a supported svelte-kit project, I thought I would open an issue.

from shadcn-svelte.

AdrianGonz97 avatar AdrianGonz97 commented on July 16, 2024

Do you have a src/lib directory? IIRC, older versions of sveltekit won't generate the $lib path alias if the lib dir doesn't exist.

from shadcn-svelte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.