Buy Now and unlock this series
$
49
.99
yours forever
$
49
.99
Become a Pro and unlock everything
$
24
.99
per month
$
24
.99
The $lib Directory
In this video, we will talk about the mysterious $lib directory.
Downloads
Become a pro to download code and videos
Svelte Kit
24 videos
Released: May 31 2021Course Instructor
Scott Tolinski
- What Is Svelte Kit
7m23s - Getting Started
8m22s - Exploring the Svelte Kit Demo
17m16s - Starting From A Skeleton
9m29s - Pages, Routing and Layouts In Svelte Kit
7m53s - The $lib Directory
4m58s - CSS In Svelte Kit - PostCSS, Scss & Scoping
11m35s - Tailwinds With PostCSS
9m41s - API Routes
5m49s - Nested Layouts
8m25s - Layout Resets
2m56s - Parameter Based File Names
8m2s - Loading Data Before Initial Render
9m24s - Markdown with MDSVEX
6m58s - Dynamic Imports and Frontmatter
6m36s - Frontmatter with MDSVEX
7m16s - Glob Imports
14m27s - Loading in Depth
14m50s - Error Pages
7m33s - Prefetch and Other Anchor Options
6m9s - Static Site Generation and Adapters
9m5s - Hosting On Render
6m49s - Building For Node
4m46s - TypeScript In Svelte Kit
5m50s
Comments
Spenser
about 1 year ago [edited]
About 2 minutes in I'm having issues with importing the Header component. I have everything the exact same as Scott and yet it refuses to show up. No errors of any kind. Interestingly I can put the header.svelte in '.svelte-kit/dev/components' and it imports just fine from there but frankly I'd rather have it in the src folder with that nice alias. So I'm not sure if something changed since the tut was made (still in beta at this time). Pulling my hair out over this one. As Gandhi once said: "this sh*t is bananas. B-A-N-A-N-A-S". If anyone had this problem's solution and want to share it would be appreciated and if I find a fix I'll follow up.
EDIT: Ok plot twist. Its actually there but svelte is giving it display: none for some reason.
EDIT: Ok for those of you following along at home we have reached a conclusion. The problem was I have the IQ of a butternut squash. I wrapped the HTML in the component in the < head > instead of < header >. I shall now quit this industry in shame and wonder the badlands out West as a stranger with no name. This is my cross to bear.
Todd
3 months ago
I know this is an old post, but that last EDIT was pretty damn funny
Want to join the conversation?
Become a Pro member today!