901 questions
0
votes
1
answer
109
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
35
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
44
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 {
...
0
votes
1
answer
181
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 ...
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 ...
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
38
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 ...
1
vote
0
answers
968
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 ...
9
votes
3
answers
8k
views
[Security Alert]: Polyfill.io Issue for Google Maps Platform users in Angular
My web app is in Angular and today I got a message from Google Cloud Platform, its mentioned a "Notification Title: [Security Alert]: Polyfill.io Issue for Google Maps Platform users". How ...
43
votes
2
answers
16k
views
Angular 18 Polyfills warning
I just upgraded to Angular 18 and I get the following warning when I do ng serve:
▲ [WARNING] Polyfill for "@angular/localize/init" was added automatically. [plugin angular-polyfills]
In ...
1
vote
2
answers
402
views
How to write array sort polyfill using merge sort approach
I was trying to write a Polyfill for array sorting in javascript. However it turns out that the comparator doesn't cause any effect on the Polyfill. Any ideas how to make it work?
const arrA = [2, ...
1
vote
2
answers
3k
views
How to make latest Angular versions compatible with old Browsers?
Angular states in its documentation that it is compatible with 2 most recent versions (and latest+ESR for Firefox) for all major browsers. Since Angular uses standard DOM API under the hood it should ...
0
votes
1
answer
144
views
Problem with Remix polyfills when importing oslo/password
I am trying to use oslo to implement auth functionality in my remix app. When importing oslo/password and rebuilding my app, the build fails with this error message:
✘ [ERROR] No matching export in &...
0
votes
1
answer
1k
views
Polyfill for ReadableStream.from in browser?
ReadableStream.from for browsers is currently only supported in Firefox. I found the Node implementation in JavaScript, but it uses a lot of internal native node functions. Likewise, ReadableStream....
0
votes
0
answers
62
views
Unable to write a polyfill for call function [duplicate]
This is my polyfill for call method
Function.prototype.mycall = (obj,...args)=>{
if(typeof this!="function") throw new Error("mycall can only be used on a function")
obj....
0
votes
0
answers
328
views
Refused to apply style from 'URL' MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled
I have an Angular app and I'm facing this error when I change the to on my index.html the application works. I need use this "/boleto_coop_front/" instead "/" on the base href to ...
-1
votes
2
answers
626
views
Can't use Express.js in my React JS Project
I'm trying to implement express.js into my react js Project, but when I add those two lines to my app.js code:
const express = require('express')
const app = express()"
I am facing the following ...
0
votes
1
answer
116
views
Emulate behavior of getElementById of IE7
Background
I have a web application that currently runs on the Edge Internet Explorer mode. I want to port this application to modern browsers like Edge or Chrome.
The JavaScript in this application ...
1
vote
0
answers
515
views
Polyfill for doesn't seem to work correctly for imported worker in Vite
When using a pdfjs worker, I get this issue on older browsers. I am suspecting that the new feature # for private class is not being polyfilled. I have however no idea how to solve this. I would ...
2
votes
0
answers
207
views
Angular 14 .browserslistrc and polyfills
I am looking for polyfill loading mechanism as webpack do with babel for Angular. I am still using Angular 14. I use string replaceAll in my ts code. Add chrome 70 in the .browserslistrc and hope to ...
1
vote
0
answers
735
views
After installing nodejs version 20.3.1 still --> TypeError: First parameter has member 'readable' that is not a ReadableStream
sorry to bother you with my tiny problem.
After reading threw the previous questions about the same error and installing nodejs and npm to the latest versions, the error is still showing up. And I ...
1
vote
1
answer
3k
views
I need to polyfill nullish-coalescing-operator and optional-chaining
I have an angular application which I recently upgraded to angular 15. I have a requirement to support it in Chrome 69 browser. When I run in Chrome 69, I get 2 errors which are related to the ...
2
votes
0
answers
2k
views
Angular Polyfill for Angular 14 app giving an error
I recently upgraded my angular app from v14 to v15. Due to a business need, we need to support Chrome 69 for the app. So, I added the following lines of code in my polyfills.ts file:
import '@angular/...
2
votes
1
answer
3k
views
Build Error - SyntaxError: Unexpected token .polyfills - Chrome Headless
I am getting an error while building my Angular App on Jenkins. Am upgrading from Angular8 to Angular15 with no errors in my local. I believe my issue could be somewhere on polyfills.ts. tsconfig.app....
3
votes
1
answer
3k
views
angular 15 util.js Uncaught ReferenceError: process is not defined
I am trying to integrate Voice JavaScript SDK into an Angular 15 application. After installing the required npm packages, if I run the app I am getting the below error in browser console and UI is not ...