Giter VIP home page Giter VIP logo

solve-remix-vite-add-radix-ui-themes-allow-list-problem's Introduction

remix + vite + radix-ui/themes

This repository is for the purpose of creating a minimal reproduction.

Reproduction steps

pnpm i
pnpm run dev

then visit http://localhost:5173

check messages in terminal.

How was the project built

This is a project initialized through remix-vite, template originated from remix-vite docs

1. remix-vite init

pnpm dlx create-remix@latest --template remix-run/remix/templates/vite

2. add radix-ui/themes@next

for esm support, use radix-ui/themes@next

pnpm add radix-ui/themes@next

3. use radix-ui/themes in project

//@file: app/root.tsx
import "@radix-ui/themes/styles.css";
import { Theme } from "@radix-ui/themes";

// ...other code snippets...

export default function App() {
  return (
    <Theme>
      <Outlet />
    </Theme>
  );
}

4. See outputs

run project

pnpm run dev

vist http://localhost:5173

get messages in terminal.

14:20:55 [vite] Pre-transform error: Failed to load url /node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@radix-ui/themes/styles.css (resolved id: [EDITED]/solve-remix-vite-add-radix-ui-themes-allow-list-problem/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@radix-ui/themes/styles.css) in [EDITED]/solve-remix-vite-add-radix-ui-themes-allow-list-problem/app/root.tsx. Does the file exist?
The request url "[EDITED]/solve-remix-vite-add-radix-ui-themes-allow-list-problem/node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected][email protected]/node_modules/@radix-ui/themes/styles.css" is outside of Vite serving allow list.

- [EDITED]/solve-remix-vite-add-radix-ui-themes-allow-list-problem/app
- [EDITED]/solve-remix-vite-add-radix-ui-themes-allow-list-problem/node_modules/.pnpm/[email protected]/node_modules/vite/dist/client

Refer to docs https://vitejs.dev/config/server-options.html#server-fs-allow for configurations and more details.

solve-remix-vite-add-radix-ui-themes-allow-list-problem's People

Contributors

gowxx avatar

Watchers

 avatar

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.