Skip to main content

All Questions

Tagged with
1 vote
0 answers
20 views

How to enable chunks for development on Nuxt?

When I use dev-mode with HMR and I open any page of my project every file in the project has separated request in Network Inspector - from several hundreds to several thousands files downloaded ...
Denis Bookreev's user avatar
0 votes
0 answers
16 views

Prevent Vite/RollUp from scoping globalThis

I'm using PDF.js and one of its classes is instantiated with: class DOMCanvasFactory extends _base_factory_js__WEBPACK_IMPORTED_MODULE_0__.BaseCanvasFactory { constructor({ ownerDocument = ...
adamdaly's user avatar
  • 363
0 votes
1 answer
42 views

RollupError: Module format "umd" does not support top-level await. Use the "es" or "system" output formats rather

RollupError: Module format "umd" does not support top-level await. Use the "es" or "system" output formats rather. I can't figure out what to do. I'm trying to build my ...
Kemal Güneş's user avatar
0 votes
1 answer
22 views

Vitest not properly interpreting TypeScript

I have the following setup test: import { describe, it } from "vitest"; import { init, initServer } from "../src"; import dotenv from "dotenv"; dotenv.config(); ...
Ethan's user avatar
  • 739
0 votes
0 answers
25 views

Vite compiled file fails with error during namespace mapping

I have a node.js app that I want to build with Vite/SWC. Config file: import { defineConfig } from 'vite'; import { VitePluginNode } from 'vite-plugin-node'; import path from 'path'; export default ...
Vololodymyr's user avatar
  • 2,178
0 votes
0 answers
120 views

MUI X Localization Context Error When Using MUI Date Picker from Custom Library

I'm working on a React project that utilizes a custom component library. This library is showcased using Storybook and built with Vite in its Library Mode. In the vite.config.js all peerDependencies ...
falkop's user avatar
  • 1
-1 votes
0 answers
29 views

Rollup failed to resolve import "styled-components" from "/opt/build/repo/node_modules/sanity/lib/index.esm.js"

I am using the Sanity CMS and Netlify and it builds locally and renders just fine. When I deploy it installs all of the dependencies correctly but upon building it results in the following error: [...
gregwhitworth's user avatar
0 votes
1 answer
78 views

`RollupError: [commonjs--resolver] Expression expected` when building the project in Vite

I have a project that includes a React Native project and a Vite (React Native Web) project in a monorepo using pnpm. When I build the Vite project, I am getting the error: error during build: ...
Bruce Z's user avatar
0 votes
0 answers
17 views

Why rollupOptions.output.compact would cause Vite build error on Chrome 62?

Vite config: build.rollupOptions.ouput.compact: true. imoport.meta.url is used in the project. npm run build npm run preview preview on Chrome 62,there is an error: Uncaught (in promise) TypeError: ...
zangbianxuegu's user avatar
0 votes
1 answer
34 views

How to build from the same code source different bundles?

I am working on a web app and trying to build a "light" version of it without all the features that are going to be served on a different address. I don't want to fork the project and have ...
ldekester's user avatar
  • 171
0 votes
0 answers
25 views

vite config for defering parts of the page

I have a webpage built with vite. To make things nice and easy I am building a cjs bundle that I am including with a script tag. Because of some requirements I have this is also a benefit to me as it ...
munHunger's user avatar
  • 2,869
0 votes
0 answers
34 views

Manipulate import urls after build in ViteJS

I have a react application configured with ViteJs (vite and @vitejs/plugin-react). I Managed to change base path and it works correctly (I see <script src="/panel/client/assets/index-BHlWjozO....
Stagman's user avatar
0 votes
0 answers
17 views

mosaic-code-viewer's prismjs package not defined

I am using vite wtih rollup to build my Reactjs app. One of the packages I use is @stoplight/elements-dev-portal. This package depends on @stoplight/mosaic-code-viewer I had a problem with this ...
Kareem Ibrahim's user avatar
0 votes
0 answers
31 views

I have a configuration error : ( Error: build entry field required for the electron vite main config ) in electron-vite library

I tried to change my file name inside the main folder to: app.ts windows.ts ipcMain.ts 1: https://i.sstatic.net/AhrBw58J.png i ran into this problem, and honestly, I'm not familiar with configuring ...
Weelpert's user avatar
0 votes
0 answers
27 views

How do I prevent Vite/Rollup from amending my js filename with the number 2 becuase it has the same name as a css file?

I have php-based API that serves HTML, CSS and JS files to another site for interactive visuals. Bundling was originally done by Mix. I am trying to switch over to Vite. The issue I am having is that ...
rguttersohn's user avatar

15 30 50 per page
1
2 3 4 5
13