900 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
163
views
How to avoid target.hasPointerCapture is not a function when testing Radix UI (shadcn) components with Vitest + userEvent?
I'm testing components built with shadcn/ui, which uses Radix UI under the hood.
When running UI interaction tests using Vitest and @testing-library/user-event, I keep getting the following error:
...
0
votes
0
answers
31
views
How to implement missing Safari `history.onHistoryStateUpdated()`?
Unfortunately, Safari does not support 'webNavigation.onHistoryStateUpdated', but i need it to be working in web extension. I had an idea of wrapping history.pushState() that will call ...
0
votes
0
answers
40
views
JS `os` method not returning any data in Vite project
My goal is to collect and graph CPU usage for the host. I have a simple Vite project and am using vite-plugin-node-polyfills to try to use the os JS method. However, it just returns an empty object. I ...
0
votes
0
answers
36
views
How to import Stream.Transform in Webpack >5?
I have a project with dependencies that rely on node.js type libraries, like Buffer and Stream.
I have added the following to Webpack config:
cfg.resolve.fallback = {
...cfg.resolve....
0
votes
0
answers
47
views
CSS is not being applied to WebComponent on IOS when using a CSSStyleSheet added to shadowRoot.adoptedStyleSheets
I am creating a WebComponent and passing in css ( text ) to create a CSSStyleSheet object, which is then added to the adoptedStyleSheets in the shadowRoot.
class View extends HTMLElement {
...
1
vote
0
answers
41
views
Polyfills Not Loading on Android for Angular 17 App, Causing Null Error
So, I have an angular project. The web works perfectly fine on a computer, but not on my phone.
I have an androin 13 phone.
I tried multiple browsers.
When I tried debbuging it, I got this error after ...
0
votes
1
answer
198
views
@react-pdf/renderer can't use fonts when building for node
I am trying to build an app that uses react-pdf/renderer. I will send a pdf response from node js express server. The fonts I use in react-pdf/renderer (.ttf) seems like are fetched via XMLHttpRequest ...
0
votes
1
answer
222
views
Angular 16.2 safari browser is not working
I am using angular 16.2.0 after build live site is working properly all browser except safari browser.
Am getting error on polyfills js file
class L{static{this.__symbol__=a}
this line am getting ...
1
vote
0
answers
1k
views
Polyfill for the browser checkVisibility function
I'm working on a project that leverages a third party library, which uses the checkVisibility() function.
I have a few users reporting errors and console is showing TypeError: checkVisibility is not a ...
0
votes
0
answers
291
views
Angular compiler included both in the main and polyfills chunk - how can I fix that
Angular compiler included both in the main and polyfills chunk - how can I fix that? or where do I start looking for it?
I'm using Angular 18 - on an app that started in angular 5 and was upgraded ...
1
vote
2
answers
3k
views
Angular 16 - /app/src/polyfill.ngtypecheck.ts' not found
I'm using Angular 16.
Since I've install the Dragula dependency ng2-dragula I have an issue on compilation.
As it's said on the readme of the module => "Important: add the following line to ...
1
vote
0
answers
55
views
ProvidePlugin Object method polyfill issue
I have webpack + babel setup.
module: {
rules: [
{
test: /\.(js|jsx)?$/,
use: {
loader: 'babel-loader',
options: babelOptions
}
}
]
}
And also, I am ...
1
vote
0
answers
39
views
how to add Polyfills in next js project
When I created a project in NestJS, I encountered different errors in different browsers. For example, I implemented a button that uses the microphone, and it works perfectly in Chrome but not in ...
0
votes
1
answer
137
views
React Native - Android Studio - @azure/service-bus - fastestsmallesttextencoderdecoder: TypeError: Cannot read property 'prototype' of undefined
I'm creating an android app and I have a first issue:
https://github.com/Azure/azure-sdk-for-js/issues/30342 where they suggested me to install a polyfill described here: https://github.com/hapijs/joi/...
1
vote
0
answers
980
views
How to completely remove polyfill.io from websiteś code
I noticed that when loading my website, it tries to fetch something from polyfill.io which severly slows down loading time and is potentially harmful. I can see two links in the source code of every ...