Coder Social home page Coder Social logo

sapper-legacy.svelte.dev's People

Contributors

1wheel avatar antony avatar conduitry avatar jacobmischka avatar niksurff avatar njbotkin avatar nolanlawson avatar nsivertsen avatar rich-harris avatar s3ththompson avatar taylorzane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sapper-legacy.svelte.dev's Issues

Error while launching "npm run dev"

I get this error while doing npm run dev.

โœ— client
ENOENT: no such file or directory, open '......\sapper.svelte.technology\__sapper__\dev\client\undefined'

I'm on windows running node 8.12.0

Document preload

including

  • you can return an object or a promise
  • it runs on client and server
  • it will try and serialize data to avoid running it on both sides
  • you can use this.redirect and this.error
  • only top-level components can use it
  • it's optional
  • you can access req on the server, which is good for session-based stuff (maybe get into authentication? or maybe that should be left for examples)

Intro has bad link

Links are just elements, rather than framework-specific components. That means, for example, that this link right here, despite being inside a blob of markdown, works with the router as you'd expect

Link right here will not let u return

Tutorials

Let's maintain a list of tutorials that should exist on the site:

  • env vars
  • creating a blog site with markdown files
  • firebase auth
  • deploying to up/lambda/google cloud functions

Suggest any others and I'll keep this comment updated.

In terms of format, one idea I had was to maintain branches of sapper-template, like https://github.com/sveltejs/sapper-template/compare/blog-from-markdown-files, and somehow annotate parts of the diff in narrative order. I'm not exactly sure how it would work. But if it did, then it would mean that a) the tutorials stayed up to date, and b) they would work as both readable guides and cloneable templates.

npm run dev doesnt work

When i use npm run dev on freshly installed project, this comes up:

[email protected] dev > svelte-kit dev undefined:1 SyntaxError: Unexpected end of JSON input at JSON.parse () at hasWorkspacePackageJSON (C:\Users\UserName\Desktop\Terraria.svelte project\app\node_modules\vite\dist\node\chunks\dep-e1fc1d62.js:59805:26) at searchForWorkspaceRoot (C:\Users\UserName\Desktop\Terraria.svelte project\app\node_modules\vite\dist\node\chunks\dep-e1fc1d62.js:59833:9) at Object.searchForWorkspaceRoot (C:\Users\UserName\Desktop\Terraria.svelte project\app\node_modules\vite\dist\node\chunks\dep-e1fc1d62.js:59839:12) at dev (file:///C:/Users/UserName/Desktop/Terraria/.svelte%20project/app/node_modules/@sveltejs/kit/dist/chunks/index.js:440:35) at file:///C:/Users/UserName/Desktop/Terraria/.svelte%20project/app/node_modules/@sveltejs/kit/dist/cli.js:894:50 Node.js v18.1.0

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.