You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
Download Radiant template
Run either radiant-js or ts template
Navigate to http://localhost:3000
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
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
The text was updated successfully, but these errors were encountered:
Switched to Node v21.7.1 to match your environment
Went into both radiant-ts or radiant-js and did the following per the readme:
npm install
npm create sanity@latest -- --env=.env.local --create-project "Radiant Blog" --dataset production
npm run dev
And it seemed to work in both projects. The TypeScript error you're getting is interesting though. The code in our project has a import type and the file path looks a bit different.
I wonder if Sanity scaffolded something in the project. What options did you use to set it up?
What component (if applicable)
Describe the bug
I downloaded the Radiant template, ran
npm start
, setupsanity
as stated in the README and rannpm run dev
but there seems to be an issue with the css and it's not loading.Additionally,
npm run build
fails in the typescript version with the following errorTo Reproduce
Steps to reproduce the behavior:
http://localhost:3000
Expected behavior
CSS should load and it should look exactly like the demo
Screenshots
![Image](https://private-user-images.githubusercontent.com/31774202/406130594-2edc1a09-c82d-4b01-8485-e9c706b13f90.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NDIzOTYsIm5iZiI6MTczOTY0MjA5NiwicGF0aCI6Ii8zMTc3NDIwMi80MDYxMzA1OTQtMmVkYzFhMDktYzgyZC00YjAxLTg0ODUtZTljNzA2YjEzZjkwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE3NTQ1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxYjUwOWVlMTc5NTAxYjliMmU5NDM5NDRjZDYyYzc1NjMwZTFiM2VmNzQ0MWI4YjlmZDc2MGJkMDYyNjA5NDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.yr_5MFexzLRDP7wpTd0n442JssvV6ph_iE-84sxtA_s)
This is how it looks like after following the README steps
Browser/Device (if applicable)
Additional context
Please refer to package-lock.json file for module versions
package-lock.json
The text was updated successfully, but these errors were encountered: