rollupjs Questions

2

The problem occurs for Vite monorepo, @ aliases are respected by TypeScript because of separate tsconfig files (can be visible in IDE) but aren't distinguished among the workspaces by Vite on build...
Shiller asked 9/2, 2023 at 19:49

2

I am importing a absolute path in some files of my repo and try to bundle it with rollup My import where /api/ is absolute path: import * from '/api/myFile.js' But when I bundle it, rollup chang...
Mould asked 16/7, 2019 at 16:5

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

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

1

I developed a custom React component library to be consume on a private npm. All my components are Typescript React Class Components and in many I used interfaces to declare which props are optiona...
Extravehicular asked 3/5, 2021 at 21:11

2

Solved

I am trying to incorporate rollup.js into a project. Currently I am getting the warnings provided below in the console (unresolved dependencies) and I am not sure why or how to fix it: 'fs' is imp...
Gamboge asked 5/1, 2017 at 22:9

5

I need to build shareable React component which could be used across apps. For this, I was/am following the below article https://dev.to/alexeagleson/how-to-create-and-publish-a-react-component-li...
Amiens asked 1/8, 2022 at 17:27

2

I face the error: TypeError: Failed to resolve module specifier '../static/myJson.json'. The base URL is about:blank because import() is called from a CORS-cross-origin script. at runtime when th...

12

Trying to build a simple Vite project that has tailwindcss in it and getting the following error, any ideas? > [email protected] build > vite build vite v2.3.4 building for production.....
Kaczmarek asked 25/5, 2021 at 23:51

5

Solved

I'm currently building a UI library to simplify maintenance across multiple applications. These currently use Ant Design. All seemed to go fine... I added my peer dependencies in both package.json ...
Verile asked 11/12, 2020 at 21:45

3

Solved

I'm experimenting with svelte using it's template (https://github.com/sveltejs/template/) as starting point. And I wanted to scan qr codes with https://github.com/nimiq/qr-scanner, but on my pc I d...
Blockhead asked 20/11, 2020 at 14:37

3

Due to another issue, I have to import a JS dependency statically in HTML in my vue3 application. /index.html <head> <!-- ... --> <script type="module" src="node_mod...
Rodmann asked 8/6, 2022 at 8:23

1

I am trying to create more simplified output in the *.d.ts typescript files which are included with the bundled version of my modules code. These files are generated through a chain involving the t...
Chalco asked 13/9, 2019 at 17:9

1

My intention is to bundle TypeScript definitions of TS code written by myself with definitions of external modules residing in node_modules. The reasoning behind is that I need to supply these join...
Catling asked 8/1, 2022 at 10:17

1

I have the components getting imported from my component library internal to my company. The component library uses rollup: rollup.config.mjs import commonjs from '@rollup/plugin-commonjs'; import ...
Viscometer asked 7/10, 2023 at 18:41

2

I understand that I can generate a source map, but I want to generate the rollup output without minification. Is it possible to do this? I've googled and haven't found anybody asking this question....
Enclose asked 18/2, 2021 at 2:0

2

I'm using rollup to bundle a library and I want to include external dependencies together with my code in the UMD bundle. I can't find any useful information about this in the docs. It could be tha...
Harridan asked 15/6, 2022 at 7:35

1

I'm running into some issues when trying to create a component library with RollupJS. I'm building a react component library to be used inside other projects. The library uses css-modules for the ...
Tide asked 3/2, 2020 at 13:36

3

Solved

I have a json file that is required somewhere in my node script, but I do not want to have it bundled by rollup. I want it to be treated as an "external". Every time the json file changes, the scri...
Willywilly asked 26/3, 2019 at 16:49

1

Vite has revolutionised web development for frontend js/ts apps. As it is based on rollup and supports library mode, I wonder if there is still any advantage building js libraries directly with rol...
Hernardo asked 6/9, 2022 at 10:0

2

Is there any way to use different tsconfig file for vitest? I have a large project using vue-cli. Before converting it to vite based I first want to use vitest instead of jest. The problem is that ...
Gam asked 17/7, 2022 at 6:53

6

Solved

I've encountered problem building typescript packages with rollup inside lerna managed monorepo. Error: lerna ERR! rollup --config ../../rollup.config.js stderr: loaded ../../rollup.config.js wit...
Baba asked 16/11, 2019 at 14:50

2

Am using rollup.js to create a react library but when i run npm run build i get an error as if useState hook is tried to be retrieved from null Uncaught TypeError: Cannot read properties of null (r...
Eurhythmic asked 12/4, 2022 at 19:33

2

We have an app where we've been using a dynamic import syntax in our route definitions, like so: ... component: () => import('./components/SomeComponent'), We recently transitioned to vite, a...
Canicula asked 17/1, 2023 at 15:3

4

I am hosting a svelte app in GitHub pages, so its served from a subfolder. The problem is that all links aren't working anymore. Basically I need to change the base URL of the app, but I don't know...
Blaisdell asked 17/3, 2021 at 22:9

© 2022 - 2025 — McMap. All rights reserved.