Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

Node.js Version Upgrade Issue with CoffeeScript Project

I am working on a project currently running on Node v6.11.4. I am trying to upgrade the Node version to v22.3.0 (latest). However, I am encountering several errors during the installation of Node ...
Regis's user avatar
  • 1
0 votes
0 answers
48 views

Convert CoffeeScript AST to JavaScript code

CoffeeScript provides a way to obtain an AST (abstract syntax tree) from CoffeeScript code. But I can't seem to find a simple way to then convert the AST into JavaScript. I realize that I can directly ...
John Deighan's user avatar
  • 4,537
1 vote
0 answers
29 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:...
morshed's user avatar
  • 31
0 votes
0 answers
18 views

'coffeescript@1' is not in this registry

I use ionic 6 and angular 15 for my mobile application, now when I try to install cordova-sqlite-storage with command ionic cordova plugin add cordova-sqlite-storage I found this error: enter image ...
testyahoo's user avatar
2 votes
1 answer
93 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 ...
Matrix's user avatar
  • 3,480
3 votes
2 answers
80 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 ...
Саша Черных's user avatar
0 votes
0 answers
30 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....
João Vitor Choueri Branco's user avatar
0 votes
0 answers
30 views

Find Model in Backbone

I am trying to find a model object from backbone. For this I have made a method which is calling in loop and passing id to this method. initializeRepairOrder: (id) -> @repair_order = App.Models....
Divya Keswani's user avatar
0 votes
0 answers
32 views

How can I compile CoffeeScript from .NET using Visual Studio 2022?

I want to write an HttpHandler that compiles CoffeeScript code on-the-fly and sends the resulting JavaScript code. How can CoffeeScript be compiled in .NET? Previously I was using Mindscape Web ...
bittu's user avatar
  • 1
3 votes
1 answer
137 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 ...
Haseeb Zahid's user avatar
0 votes
0 answers
31 views

How do I find memory leak in my node.js application on Heroku?

I have a Node.js (CoffeeScript) application (job) deployed as a separate app on Heroku. I have tried using New Relic, node's built-in profiler and heap dump but so far have been unsuccessful. I can ...
Haseeb Zahid's user avatar
0 votes
1 answer
25 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 ...
max1mvs's user avatar
  • 21
0 votes
0 answers
61 views

Troubleshooting Issues with PDF Conversion in Updated Docker-Wkhtmltopdf-aas Package

I've taken on the task of updating an old package available on GitHub => https://github.com/leknoppix/docker-wkhtmltopdf-aas (master branch). This package allows for the quick setup of an API to ...
Cañadas Pascal's user avatar
0 votes
0 answers
69 views

Cannot import coffee-script file into application.js

I am facing a problem that is too hard to fix. I am building a Rails application, I created a coffee-script file named mypage.coffee. Then, I embedded this file into application.js file. The error ...
user avatar
0 votes
0 answers
15 views

export, import, use class with coffeescript in rails5 app

I am trying to fix pusher process in rails 5 app. However, coffeescript is not working what I expected with export, import error on browser like: SyntaxError: [stdin]:1:1: reserved word 'export' or ...
Doyoun's user avatar
  • 97
1 vote
0 answers
17 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 ...
dona singla's user avatar
0 votes
1 answer
35 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 ...
Lucho's user avatar
  • 51
0 votes
1 answer
69 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 ...
Haseeb Zahid's user avatar
2 votes
0 answers
446 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 ...
Louis Boux's user avatar
  • 1,238
0 votes
1 answer
40 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 ...
John Deighan's user avatar
  • 4,537
0 votes
0 answers
60 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) -> ...
Tian Gao's user avatar
0 votes
1 answer
39 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: ...
John Deighan's user avatar
  • 4,537
1 vote
1 answer
637 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 ...
Ahmad Faroun's user avatar
0 votes
0 answers
159 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: ...
SBS's user avatar
  • 41
0 votes
0 answers
44 views

Porting: how can i convert those coffeescript into lua?

((contextObject) -> return (contextObject.isInherent or contextObject.isAdditionalInherent) and !contextObject.isHiddenToUI and !@getGameSession().getModifierClassForType(contextObject....
5242 Bora's user avatar
1 vote
0 answers
17 views

import packages in CoffeeScript [duplicate]

I'm trying to import a package inside an old coffe script file: import Quill from 'quill/core' But keep getting the error: Uncaught SyntaxError: Cannot use import statement outside a module I set type:...
temp's user avatar
  • 550
2 votes
0 answers
53 views

Facing issue after converting code from JavaScript to CoffeeScript, Code is not working nor displaying any Error?

counters = document.querySelectorAll('.counter') counters.forEach (counter) -> incrementButton = counter.querySelector('.plus') decrementButton = counter.querySelector('.minus') ...
Ahsan's user avatar
  • 83
0 votes
1 answer
231 views

Adding and using current geolocation for weather application (widget) using OpenWeatherAPI

I am trying to add/use current geolocation on the weather widget that I am trying to make. Currently, I am able to display information of cities based on an external file. I have very little knowledge ...
Zac.R's user avatar
  • 1
1 vote
1 answer
190 views

Calling AJAX in Coffeescript

I have an ajax call that works well in a view, but I would like to make it in a coffee script, right inside a datatable call. The code looks like: $(document).ready(function () { $.ajax({ ...
Rene Chan's user avatar
  • 945
1 vote
1 answer
174 views

how can put ruby tag with javascript (coffescript)?

I am working with ruby on rails (rails 4.2). Given a validation done in javascript I need to run a ruby tag or not. I found something similar here but it didn't work for me. html: <div id="...
Lucho's user avatar
  • 51
0 votes
0 answers
148 views

How do I make VSCODE understand source maps for concatenated coffeescript files?

Trying to use the VSCODE debugger on some coffeescript but part of the build process has grunt-contrib-coffee concatenate a bunch of the sources then compile it and create source maps. ie Gruntfile: &...
emenym's user avatar
  • 11
0 votes
1 answer
85 views

Dropzone Rails Gem How to Send with 0 Files

I want to know the right way on how I handle still sending even when I have 0 files uploaded. I have a form that has a lot of data to input and the images are optional. I could probably send this with ...
TheMangaStand's user avatar
0 votes
0 answers
30 views

Trouble with toggling visibility of a link_to in a tag

It's been a very long time since I've touched anything to do with Javascript or Coffeescript, still pretty new to RoR and I'm having some trouble getting an eventlistener to work. Currently tags on my ...
Ruby Newb's user avatar
4 votes
3 answers
799 views

how add coffeescript in svelte on Rails 7?

I have a Rails 7 app with esbuild : esbuild.config.js : #!/usr/bin/env node const watch = process.argv.includes("--watch"); const esbuild = require('esbuild') const ...
Matrix's user avatar
  • 3,480
3 votes
1 answer
502 views

nodejs debugging with non-javascript

In my case, I want to debug CoffeeScript, but this question is NOT CoffeeScript specific. It relates to debugging ANY non-JavaScript language that compiles to JavaScript. To do that, you need to ...
John Deighan's user avatar
  • 4,537
0 votes
1 answer
64 views

Coffeescript if condition for date

This is my 1st mini project using coffeescript dcaf. Im currently doing some function in coffeescript, my roadblock is i cant compare 2 dates on if statement. Any thoughts?
John Louise Pilien's user avatar
0 votes
1 answer
395 views

Ruby/Rails button and search filtering

I've added the Active and Archived buttons to this page for extra filtering. The existing search box functionality uses the following js.coffee which calls the controller index to pull the data from ...
treatyman's user avatar
-1 votes
1 answer
41 views

i am using node cron for running jobs , i will this run every day including saturday and sunday '00 00 22 * * *'

i am using node cron for running jobs , i am confused will this pattern run every day including Saturday and Sunday as well '00 00 22 * * *'
Kumar Rahul's user avatar
0 votes
1 answer
707 views

CoffeeScript can't use spread operator with class fields

I can't understand why this syntax of spread method is wrong for CoffeeScript in WebStorm class Test fruit: {apple: "apple"} init: -> console.log 1, @fruit spread: -> ...
EzioMercer's user avatar
  • 1,799
0 votes
0 answers
176 views

How do I resolve this javascript 404 error?

Im running into what seems like an odd issue. We made a slight change to our coffee javascript and then ran the clobber and precompile. Now for some reason the script works for about 30 seconds then ...
user891859's user avatar
0 votes
0 answers
262 views

DB connectivity failure in Cypress while running from console

I was trying to connect MSSQL from Cypress and finally got a solution by following the steps provided in this link: https://github.com/cypress-io/cypress/issues/6621 The solution worked perfectly fine ...
Bijo Joseph's user avatar
0 votes
1 answer
130 views

Get unique values from an array of objects using Cofeescript

I have an array that looks like this: [ { "id": 1, "name": "Paul", "parent": "Jane" }, { "id": 2, "name"...
cris's user avatar
  • 13
0 votes
2 answers
3k views

MongoDB aggregate function with find function

I am using coffeescript with nodejs to query monogodb data but for some custom data i need to perform aggregate function on my collection but using Session.aggregate(query) in the code is giving me ...
unknown's user avatar
0 votes
1 answer
383 views

Set Atom config.cson location

Is it possible to set Atom config.cson location, instead of using the default ~/.atom/config.cson? Or at least to be able to use project-relative paths in the config.cson?
user2340939's user avatar
  • 1,931
1 vote
1 answer
216 views

How to execute a python code from coffee script and get the output

I am developing a CoffeeScript which needs to execute a Python program and get the responses from the Python code. My coffee script is module.exports = (robot) -> robot.respond /greetme/i, (msg)...
Indhumathi Murugesan's user avatar
0 votes
1 answer
84 views

Create a coffeescript to access config.ini file

i am trying to use config.ini in an existing coffeescript. this is my config.ini [env] RUNNING_ENV = 'dev' [dev] security="no" priority="P2" [prod] security="yes" ...
Indhumathi Murugesan's user avatar
1 vote
3 answers
3k views

Get checked value from radio button group

I am populating radio buttons dynamically, and on submit button click I need to get value of the checked radio button from the group. <ul data-bind="foreach: Numbers"> <li&...
Techno's user avatar
  • 180
-1 votes
3 answers
4k views

Show/Hide Html sections on button click

I have 3 sections of code in the same page, in those 3 sections I have submit buttons. Initially 1st section should be visible, 2nd and 3rd sections are hidden. On button click from 1st section, 2nd ...
Techno's user avatar
  • 180
0 votes
1 answer
576 views

show/hide on radio button checked/unchecked- knockout js

I have 2 radio buttons, When I click on the option A, a particular div has to be shown, and when click on the option B, 1st div should be hidden and 2nd div should be shown. Below is the code. <div ...
Techno's user avatar
  • 180
0 votes
1 answer
46 views

Array element presence check quirks in CoffeeScript

When checking element presence in inline arrays via the in keyword, CoffeeScript ignores indexOf and rather does that many equality checks. However, when referring to an array via a variable, it calls ...
Tonči D.'s user avatar
  • 466

1
2 3 4 5
195