Code Monkey home page Code Monkey logo

demo-sveltekit's Introduction

๐Ÿš€ Handle data in SvelteKit with Prisma

This application is built using these technologies:

๐Ÿ› ๏ธ Getting started

To get started, navigate to the directory of your choice and run the following command to clone the repository:

git clone https://github.com/sonylomo/demo-sveltekit.git
cd demo-sveltekit

Install dependencies and fire up the application:

npm install
npm run dev

Awesome! Your application should be running on: http://127.0.0.1:5173/ starter blog

demo-sveltekit's People

Contributors

ruheni avatar sonylomo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

demo-sveltekit's Issues

Cannot find package 'svelte-preprocess'

Hi,

I am new to svelte so this might be an user error.

After running

git clone https://github.com/sonylomo/demo-sveltekit.git
cd demo-sveltekit
pnpm install
pnpm run dev

I encountered the following error

error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'svelte-preprocess' imported from /home/user/demo-sveltekit/svelte.config.js
Did you mean to import [email protected][email protected][email protected]/node_modules/svelte-preprocess/dist/index.js?

Fixed by running

pnpm i svelte-preprocess

Cannot find module './$types' in Post.svelte

I've completed the tutorial. Everything works but TS shows error in src/lib/components/Post.svelte

Cannot find module './$types' or its corresponding type declarations.
for import on the 3rd row
import type { PageData } from "./$types";

It seems logical as how component would know which PageData to use without page context as it's not +page.svelte file or something similiar.

Is it possible to get rid of this error somehow and get correct types for post export parameter.

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.