9,716 questions
1
vote
0
answers
55
views
How does triggers clicked worked in backbone.js
Recently, I have got a rails project project with backbone.js and CoffeeScript to support however I don't have previous work experience with backbone.js.
Some of model relationship of the projects are:...
2
votes
1
answer
118
views
ExecJS::RuntimeError with rails, how get details of error?
I use rails 6 app with execJS, Sass and coffeeScript.
There is an error in my coffee code, but I don't have information to find where...
there is just an exception like this :
ExecJS::RuntimeError in ...
3
votes
2
answers
117
views
How to correctly use functions inside loops in CoffeeScript 2?
1. Summary
I can’t find, what is the correct way to use functions inside loops (or what to replace it with) in CoffeeScript 2 in 2024.
Should I use one of the variations I’ve given below, or ...
0
votes
0
answers
57
views
How to instantiate a class that requires DOM with Puppeteer?
I want to instantiate a class called DataBinding that uses document.querySelector inside a CoffeeScript file. To achieve this, I'm using Puppeteer to create the DOM environment. However, inside page....
3
votes
1
answer
228
views
Searching for emails with empty subjects using IMAP
I am trying to search emails from my draft folder using node-imap package
So what my file does is, it uses an imap search function based on Subjects and since the number of subjects is dynamic, we ...
0
votes
1
answer
40
views
Übersicht (macOS) question: prevent image caching in widget
I am maintaining an old CoffeeScript in Übersicht that spits out a random image from Photos. The widget refreshes every 30 minutes.
What happens is that an AppleScript executes and overwrites an image ...
1
vote
0
answers
37
views
Why does installing grunt(npm install grunt --save-dev) into my project stops in between and doesn't make any chnages to package.json?
Installing grunt stops in between and does not move forward, please see image attached
Reasons why this is happening and solution to it?
Uglified js files via brunch before but it is no more ...
0
votes
1
answer
41
views
how put an id unique in a button in a rails loop?
I have a grid where the receipts are listed with their information and the display button. The idea is that pressing the button that appears in the actions column (button_tag) sends the information of ...
0
votes
1
answer
113
views
Prioritize Gmail filter using Gmail API
I am creating a filter in Gmail using Gmail API but the problem is that any filter created via API is moved to the top of the existing filters. I need it to be put at the bottom. There does not seem ...
3
votes
0
answers
606
views
custom script languages (such as coffeescript) no longer supported in vue 3.3?
UPDATE 2: This seems to be like an undocumented change to how the compiler works with the code in the tags (most likely unintentional, so probably a regression)
Here's how the compiler handles ...
0
votes
1
answer
63
views
CoffeeScript and Service Workers
When trying to register a service worker in CoffeeScript, it looks like the latest Chrome browser doesn't support service workers, which I know is not true. Here is my app.coffee, which is converted ...
0
votes
0
answers
82
views
In rails how to require a coffeescript file
In a rails application. I want to create a coffeescript function that can be shared by multiple coffeescripts.
for example
app/assets/javascripts/util.js.coffee
sample_function = (word) -> ...
0
votes
1
answer
46
views
CoffeeScript function syntax with nesting
I've come across a use of functions in JavaScript that I can't seem to convert, correctly, to CoffeeScript syntax. I'd appreciate it if someone could let me know how to do this:
JavaScript version:
...
2
votes
1
answer
809
views
webpack-electron, [11440:0125/075150.232:ERROR:CONSOLE(1)] "Request Network.loadNetworkResource failed
I try to run electron using webpack, when I run electron with the watcher running then elecrone spits out the following in the console
"[11440:0125/075150.232:ERROR:CONSOLE(1)]
"Request ...
0
votes
0
answers
203
views
How to add a loader in a Vue/Webpack app to support non JS files used in a dependency of a node module
I have a Vue 2 app that uses Webpack, and I am trying to use in it the node module PSD.js, which in itself utilizes CoffeeScript as part of it's dependencies. When I try to compile i get the error:
...