Code Monkey home page Code Monkey logo

ptkdev-boilerplate / svelte-kit-ssr-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
37.0 5.0 3.0 2.33 MB

🧵 Svelte server-side-rendering built with SEO in mind. Start your project with this friendly svelte kit boilerplate

Home Page: https://npmjs.com/package/@ptkdev/svelte-kit-ssr-boilerplate

License: Other

JavaScript 17.56% Shell 0.29% HTML 1.20% Svelte 14.80% Smarty 6.65% TypeScript 51.64% SCSS 7.86%
svelte-kit svelte svelte-boilerplate svelte-ssr server-side-rendering ssr svelte-kit-boilerplate github-template seo create-svelte-app

svelte-kit-ssr-boilerplate's Issues

The app don't run

Versions

  • App Version: v1.0.20210516
  • Node Version: v14.17.0
  • Operating System: macOS Monterey 12.0.1
  • Browser: Google Chrome v96.0.4664.55 (arm64)

Expected Behavior

The app won't start, I updated vite but I receive an error in my browser on http://127.0.0.1:5000:

Error: Unrecognized option 'enableSourcemap' at file:///Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/svelte/compiler.mjs:29966:19 at Array.forEach (<anonymous>) at validate_options (file:///Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/svelte/compiler.mjs:29960:26) at compile (file:///Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/svelte/compiler.mjs:30004:5) at compileSvelte2 (file:///Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/@sveltejs/vite-plugin-svelte/dist/index.js:313:20) at async TransformContext.transform (file:///Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/@sveltejs/vite-plugin-svelte/dist/index.js:1460:27) at async Object.transform (/Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/@sveltejs/kit/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:42396:30) at async doTransform (/Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/@sveltejs/kit/node_modules/vite/dist/node/chunks/dep-e0fe87f8.js:56801:29)

Actual Behavior

I receive this error:

@ptkdev/[email protected] dev /Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit
svelte-kit dev -p 5000

`(node:4914) UnhandledPromiseRejectionWarning: file:///Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/@sveltejs/vite-plugin-svelte/dist/index.js:1117
transformWithEsbuild
^^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'transformWithEsbuild' not found. The requested module 'vite' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'vite';

at ModuleJob._instantiate (internal/modules/esm/module_job.js:104:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:149:5)
at async Loader.import (internal/modules/esm/loader.js:177:24)
at async file:///Users/alessandromicelli/Desktop/Progetti/Personali/Client/svelte-kit/node_modules/@sveltejs/kit/dist/cli.js:838:19

(Use node --trace-warnings ... to show where the warning was created)
(node:4914) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:4914) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`

Steps to Reproduce

  1. clone the repo
  2. switch to branch you want
  3. launch npm run init
  4. launch npm run dev

Screenshots (Optional)

[Bug] Darkmode don't work

Darkmode don't work

Versions

  • App Version: latest svelte-kit
  • Node Version: v15.0.0
  • Operating System: All
  • Browser: Google Chrome v89

Expected Behavior

Toggle darkmode work

Actual Behavior

Toggle darkmode don't work

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.