Skip to content

CSS is not loading while running Radiant template #1660

@manish-baghel

Description

@manish-baghel

What component (if applicable)

Describe the bug

  1. I downloaded the Radiant template, ran npm start, setup sanity as stated in the README and ran npm run dev but there seems to be an issue with the css and it's not loading.

  2. Additionally, npm run build fails in the typescript version with the following error

➜ npm run build

> [email protected] build
> next build

  ▲ Next.js 14.2.11
  - Environments: .env.local

   Creating an optimized production build ...
 ✓ Compiled successfully
   Linting and checking validity of types  .Failed to compile.

./src/sanity/lib/image.ts:2:10
Type error: 'SanityImageSource' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

  1 | import createImageUrlBuilder from '@sanity/image-url'
> 2 | import { SanityImageSource } from "@sanity/image-url/lib/types/types";
    |          ^
  3 |
  4 | import { dataset, projectId } from '../env'
  5 |

To Reproduce
Steps to reproduce the behavior:

  1. Download Radiant template
  2. Run either radiant-js or ts template
  3. Navigate to http://localhost:3000
  4. See error

Expected behavior
CSS should load and it should look exactly like the demo

Screenshots
This is how it looks like after following the README steps
Image

Browser/Device (if applicable)

  • OS: Manjaro(Arch) with i3 WM
  • Browser Google Chrome
  • Version Version 131.0.6778.85 (Official Build) (64-bit)

Additional context

➜ npm --version
10.5.0
➜ node --version
v21.7.1

Please refer to package-lock.json file for module versions
package-lock.json

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions