Giter VIP home page Giter VIP logo

subhendupsingh / sveltekit-notion-blog Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 5.0 3.1 MB

A plug and play library for setting up blogs in subdirectory or main directory in Sveltekit projects using Notion as CMS.

Home Page: https://sveltekit-notion-blog.netlify.app

JavaScript 4.83% HTML 0.90% CSS 0.36% Svelte 50.22% TypeScript 43.69%
cms notion notion-api notion-blog svelte sveltejs sveltekit svelte4

sveltekit-notion-blog's People

Contributors

subhendupsingh avatar

Stargazers

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

Watchers

 avatar

sveltekit-notion-blog's Issues

Module error `svelte-meta-tags` when trying to implement

When trying to implement everything as per your documentation, I seem to be getting the following error:

3:38:47 AM [vite] page reload src/routes/+layout.svelte
3:38:48 AM [vite] Error when evaluating SSR module /src/routes/+layout.svelte: failed to import "sveltekit-notion-blog"
|- Error: Cannot find module 'svelte-meta-tags' imported from 'sveltekit-notion-blog/dist/components/BlogPost.svelte'
    at nodeImport (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55911:25)
    at ssrImport (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55813:30)
    at eval (<YOUR_PROJECT_PATH>/node_modules/sveltekit-notion-blog/dist/components/BlogPost.svelte:4:37)
    at async instantiateModule (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55875:9)

Internal server error: Cannot find module 'svelte-meta-tags' imported from 'sveltekit-notion-blog/dist/components/BlogPost.svelte'
      at nodeImport (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55911:25)
      at ssrImport (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55813:30)
      at eval (<YOUR_PROJECT_PATH>/node_modules/sveltekit-notion-blog/dist/components/BlogPost.svelte:4:37)
      at async instantiateModule (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55875:9)
Error: Cannot find module 'svelte-meta-tags' imported from 'sveltekit-notion-blog/dist/components/BlogPost.svelte'
    at nodeImport (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55911:25)
    at ssrImport (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55813:30)
    at eval (<YOUR_PROJECT_PATH>/node_modules/sveltekit-notion-blog/dist/components/BlogPost.svelte:4:37)
    at async instantiateModule (file:///<YOUR_PROJECT_PATH>/node_modules/vite/dist/node/chunks/dep-abb4f102.js:55875:9) {
  code: 'ERR_MODULE_NOT_FOUND'
}

You can view the code I currently have to implement this at

Why does `PostsList.svelte` already contain content?

Is the purpose for these components to be reusable by others?

I think it's strange when I tried to use it, it had already the following content:

<div class="flex flex-col gap-12 mb-8">
    <h1 class="font-bold text-4xl">Welcome to StoreBud blog - Platform for growing D2C brands!</h1>

    <p class="text-lg">
        StoreBud blogs cover variuos topics related to setting up your own ecommerce website in India and 
        other parts of the world, including tips and tricks, best practices and success stroies of the 
        growing D2C brands.
    </p>
</div>

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.