Unanswered Questions
729,831 questions with no upvoted or accepted answers
31
votes
4
answers
8k
views
How to get rollup to include a dependency from another package in a lerna monorepo in its transpilation (TypeScript)?
I created a minimal example to show the question I have: Github repo.
I have a lerna monorepo with two npm packages in the packages folder, the packages are called:
utils: exports a function:
...
29
votes
1
answer
7k
views
How to detect if Prevent Cross-site tracking is active on Safari 13 with javascript
I would like to detect when Prevent Cross-site tracking is active in a browser using JavaScript.
My challenge is trying to find a method to detect this and show a warning popup to the user when this ...
28
votes
2
answers
842
views
How to minify and factor-bundle files in the same browserify command?
I currently have this factor-bundle command which I use to bundle my files, and pull everything common into a common file:
browserify index.js bar-charts.js list-filter.js dashboard.js
-p [ factor-...
26
votes
2
answers
996
views
Mobile Safari crashes when using Hammer.js
I am working on a multi-player game in Javascript for the iPad. I am using Smartfox Server for the multiplayer, and Hammer.js for touch events.
I am having an issue where when I use a Hammer ...
25
votes
1
answer
4k
views
Rails Activestorage + DirectUpload javascript progress bar not showing when using "remote:true"
I have been using Rails ActiveStorage DirectUpload in my Rails app. And here is the code of the form:
<h3>Select Files To Upload</h3>
<%= form_for @uploader, url: uploaders_file_path(@...
25
votes
1
answer
594
views
Updating AngularJS scope after validating search form in Symfony2
Hi fellow developers,
We have to rewrite a software application in Symfony2 with AngularJS, we use Symfony2 for the MVC purpose and AngularJS for the useful functions.
Here's our problem, we first ...
23
votes
3
answers
7k
views
Merging/mixing two audio streams with WebAudio
I have a MediaStreamSource sourced from navigator.getUserMedia, which is connected to a GainNode, which in turn is connected to a ScriptProcessorNode, like so:
[getUserMediaStream] -> [...
22
votes
1
answer
2k
views
How to add Spine animation to Phaser game?
I am new to Phaser and the whole javascript games, and I am trying to add Spine animation to Phaser. Is there a way to do that?
I also tried to play my animation using Pixi.js and it worked.
Also I ...
22
votes
3
answers
8k
views
Debugging Web Workers in Safari Web Inspector
Chrome's Dev Tools are great for debugging web workers as I can "browse" into that JavaScript environment and set break points. Even the console works as expected.
On Safari, it is a completely ...
21
votes
0
answers
15k
views
Error: <g> attribute transform: Trailing garbage, "translate(0,NaN)" on dc.js brushing
The purpose of my code is to use the range chart(bar chart) that shows the count of the datasets produced in years, to brush on the focus chart(line chart). The focus chart then displays the count on ...
21
votes
3
answers
6k
views
Cross-domain, cross-tab communication between co-operating pages
Say I have two tabs, each with a web-page loaded on a different domain. The pages in the two tabs want to communicate.
The simplest solution I could see was this one (my answer on a closely-related ...
20
votes
1
answer
5k
views
how to view websocket ping and pong frame in Chrome?
In the same site, I can see ping and pong frame in Safari, like picture below:
but i can't see ping and pong frame in Chrome, the Chrome just include the message i send or receive but not include ...
20
votes
3
answers
7k
views
Vuetify performance issues
I have picked vuetify for an offline PWA project where I work with indexed DB and some notable size data (5k-6k/collection). I have to transfer it between vuex and IDB after I get them from the server....
20
votes
1
answer
2k
views
React Router V4 protected private route with Redux-persist and React-snapshot
I'm implementing private route like so using React Router Route Component:
function PrivateRoute({component: Component, authed, emailVerified, ...rest}) {
return (
<Route
{...rest}
...
20
votes
1
answer
2k
views
Update only the chunks that have changed with Webpack.watch()?
I have a webpack build that utilizes the watch() method to continuously rebuild my javascript as I work. I also have a watcher that uploads changed JS files to a remote server.
Right now when I ...