vite Questions

18

Solved

I created a new react-ts app using yarn create @vitejs/app my-app --template react-ts. I installed tailwind using yarn add --dev tailwindcss@latest postcss@latest autoprefixer@latest. I initialized...
Pentecostal asked 20/2, 2021 at 6:20

5

I don't know what's going on I am making a frontend using vite + react for my mern project and suddenly starts encountering this error. Error: Module "events" has been externalized for br...
Catchings asked 1/8, 2022 at 9:29

3

Solved

In my single page application I'm developing I'm using Vite and in my vite.config.ts file I have the following proxy: proxy: { '/v1': { target: 'https://127.0.0.1:8080', changeOrigin: true, sec...
Transpose asked 19/3, 2022 at 1:1

8

Solved

I have created the project using npm create vite@latest and I choose ts-react, when I ran the script the npm run dev worked, no warning however, I am getting an Cannot find module '@vitejs/plugin-r...
Amateur asked 27/2, 2022 at 17:0

4

In my SvelteKit project I am using SCSS and in order to include some mixins that are used throughout the project, I switched from vitePreprocess to svelte-preprocess and prepended them with scss.pr...
Brit asked 9/1, 2023 at 11:10

5

Solved

I have setup a pnpm workspace with a number of projects that I am adding as git submodules. A previously working Nuxt project suddenly started giving the error The request url * is outside of Vite ...
Neidaneidhardt asked 23/12, 2022 at 18:2

2

I am using Vite with a Typescript React project. I have jest tests in my project as well. When I run vite build it seems to be compiling and bundling my test files. I have some stubbed out tests th...
Heighttopaper asked 23/1, 2022 at 20:42

9

I'm having a devil of a time figuring out how to build a single .js file from Vite in my Svelte project that includes all of the built javascript and CSS from my Svelte projects. By default, Vite b...
Fledgy asked 31/5, 2021 at 23:36

27

Vite + Reactjs server is running but I am getting "This localhost page can’t be found No webpage was found for the web address: https://localhost:4200/" on the browser
Votyak asked 13/1, 2022 at 9:29

9

I created a React application using Vite and used the documentation provided here to install Tailwind: Tailwind CSS Installation Guide. However, it's not picking up any of the Tailwind styles. tail...
Yugoslavia asked 2/2, 2023 at 21:47

1

I'd like to retrieve the git build and branch data from an environment variable I can set/export at build time. is there a way I can reference such an env variable somewhere in the markdown files o...
Garrik asked 23/5, 2022 at 13:54

22

I have created a project using vite and react. I create a theme to set my project into right to left. Everything was ok and the project was running properly. const theme = createTheme({ direction:...
Sidonia asked 23/11, 2022 at 6:14

3

Solved

I have a simple React.js application with wouter-based routing and Vercel deployments that drive me into a little issue where I have no idea about the solution. It always returns 404 after refresh ...
Interknit asked 26/1, 2022 at 21:52

2

I am having some problems with the React project that I am currently working on. I use Vite as my build tool and for the last 2 or 3 days I see that sometimes I receive this error: Uncaught SyntaxE...
Benefactress asked 6/5, 2023 at 21:9

6

Solved

so yesterday i was working on a project and by the time i was about to quit because i was done with it i got this error and have been trying to fix it the entire day today. My code worked, then bro...
Pyrrhuloxia asked 11/10, 2022 at 12:49

2

Solved

I'm trying to import enums, objects, functions, and svelte components by using absolute paths to files, but the compiler can't find them. This is how i do the imports: <script lang=ts> impor...
Karlis asked 17/9, 2022 at 12:19

7

Solved

Is there a way to stop getting error from ESLint for single word view name in Vue3? Every time I run ESLint, I get following message: 1:1 error Component name "About" should always be mu...
Bruns asked 14/12, 2021 at 9:48

1

I have the following files in a React app with Vitest (which has the same API as Jest): // hooks/useEntities/useEntities.ts return useEntities() { // this hooks send api requests so I will mock i...
Cesar asked 15/12, 2022 at 15:46

3

Solved

Is it possible to include snippets of shared HTML using Vite (vanilla)? I'm looking for a way to have the HTML prerendered without injecting via JS. Something like: <html> <head> { in...
Chirpy asked 23/1, 2022 at 1:44

8

Solved

I have created a React app with Typescript with npm create vite@latest. When I have done like this before everything have been working fine but when I did it today I get the errors: Type 'Element' ...
Amends asked 14/8, 2023 at 11:1

21

I installed a package called big decimal js while using React with JavaScript on Vite. On compiling, it showed the following error on the console, and the application did not load: My package.json...
Threesome asked 30/3, 2023 at 2:48

5

Solved

I'm working on a Vite project which uses the opensea-js package. This package depends on xhr2-cookies. which imports os, http, https and some other internal node modules. I'm getting this error whe...
Merrillmerrily asked 22/9, 2021 at 14:34

5

In my Vite project, I am depending on a module that makes use of the process Node global in one of its functions. I don't call this function from my code, but the Vite dev server still gives me thi...
Yugoslavia asked 12/5, 2022 at 20:29

19

Solved

Tried to use this library: vite-plugin-react-svg and had no success by importing it like: import { ExternalLink } from 'assets/svg/link-external.svg?component'; Are there any workarounds for this ...
Nelsonnema asked 10/12, 2021 at 19:32

8

Solved

I created an app from the 'Angular with ASP.NET Core' project template in Visual Studio 2022 17.8 and .NET 8. It launches the API app in Chrome and the Angular app in Edge. In Edge it doesn't show ...
Jungjungfrau asked 3/12, 2023 at 9:1

© 2022 - 2024 — McMap. All rights reserved.