Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
11 views

require index.cjs not work in vite with puppeteer

I use electron to create a desktop app, and with vite to complie js file, I find vite seem not work with puppeteer, in the file vite generate, it always have error: ./build/index.cjs module not find I ...
Jianze Zeng's user avatar
0 votes
0 answers
20 views

Cannot use jsx with Rollup

I'm using Rollup to compile my tsx files to js files. I have the following config: // @ts-check import multiInput from "rollup-plugin-multi-input"; import typeScript from "rollup-plugin-...
Ethan's user avatar
  • 749
0 votes
0 answers
49 views

NX not resolving modular config

I'm using @nx/rollup for my NX package with Rollup. When running the build command with the verbose flag I get an error: Failed to process project graph. Run "nx reset" to fix this. Please ...
Ethan's user avatar
  • 749
1 vote
1 answer
68 views

JSX element type '<Component>' does not have any construct or call signatures error AND MORE

I've been beating my head against a wall for days, so I'm throwing myself on the mercy of people who are smarter than me. (Sorry for the length... I'm trying to be thorough) I'm currently working a ...
Collin Lucke's user avatar
0 votes
0 answers
54 views

typescript: transform property to function call

Here's a minimal example of some typescript code: // codebase.ts console.log(document.body.shadowRoot); console.log(document.body.childNodes); It is proposed that we add the following functions: // ...
EoghanM's user avatar
  • 26.4k
1 vote
0 answers
124 views

Adding Nitro Rollup config options breaks build process in Nuxt app

I'm using Nuxt and I needed to compile a couple specific .ts files into modules to be run. I've added the following into the nuxt.config.ts file: nitro: { rollupConfig: { input: ['./server/...
Khaelem Watt's user avatar
1 vote
0 answers
35 views

How could I generate a bundle with external type declaration merging?

I'm trying to generate a bundled type with declartion merging, but the result doesn't matches my expectation. For example, here's a simplified code: import type { JSONSchema7 } from "json-schema&...
moontai0724's user avatar
0 votes
1 answer
205 views

Vite multi page (HTML) and Tanstack Router

I'm working on a project that I'll need create 3 HTML files, and they will share the same JS source. The main reason is that I need 2 differents manifest files for each HTML, it will be a PWA ...
Carlo Schneider's user avatar
0 votes
1 answer
50 views

Rollup build empty index.js

I'm creating a simple component to publish on npm and using rollup to build. The issue is index.js has nothing but import 'react' Here's rollup config import typescript from '@rollup/plugin-typescript'...
Sagar Mavai's user avatar
0 votes
0 answers
297 views

How to fix Rollup.Js "Unresolved Dependency" for package that is in a yarn workspace

I have a yarn workspace with 2 packages in it. One is a react ts component library, and one is a types package. The component library uses the types library. When I build my component library using ...
anthonyvid's user avatar
1 vote
0 answers
57 views

bundle[hash].js returning HTML - Uncaught SyntaxError: Unexpected token '<'

New to Java so appologies if this is a dumb question> I am trying to deploy my webpage on Vercel and it is building sucessfully however whenever I visit the webpage I get Uncaught SyntaxError: ...
Zach's user avatar
  • 21
1 vote
0 answers
138 views

How to bundle tailwind css styles into rollup

I am using tailwind css along with clsx , class variance authority and tailwind-merge to create a button component. I am using storybook to test these components and the style works in storybook. When ...
Ryan Cuff's user avatar
0 votes
0 answers
33 views

RollupJS: hot-reload doesn't refresh the page with ASP.NET server

I'm working on a JS library with RollupJS and static files are served by an ASP.NET server. To improve my DX I want to have hot-reload. On file changed, bundle file is rebuild with changed but no ...
Q. Girard's user avatar
2 votes
1 answer
1k views

Bundle library with externalized dependencies and Vite?

I'm trying to publish a library to npm that uses type: "module". I'm using vite's library mode with the following config: export default defineConfig({ css: { postcss: { plugins: ...
Xen_mar's user avatar
  • 9,380
1 vote
0 answers
44 views

React NPM library with rollup won't work when using dependencies and linking locally

I'm quite new to making NPM libraries and using Rollup. I have the following rollup.config.js: import peerDepsExternal from "rollup-plugin-peer-deps-external"; import { nodeResolve } from &...
Ammar Ahmed's user avatar

15 30 50 per page
1
2 3 4 5
16