Questions tagged [gruntjs]

Grunt is a task-based command line build tool and task runner for JavaScript projects.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

How do I create an entry point for my webpack.config.js in Angualr js

I am trying to upgrade an Angular js project from using grunt to making use of webpack. I created a webpack configuration and tried to run the application with webpack. I don't get any errors durig ...
stevens's user avatar
0 votes
0 answers
8 views

Grunt project works when accessed from VSCode, but when deployed to Vercel, doesn't load JavaScript

Sorry if the title is confusing. I'm learning Grunt in an online course, i've followed all the instructions, and the project works just fine when i go live through VSCode. But when i deploy it to ...
CinnAqua's user avatar
0 votes
0 answers
10 views

Grunt :: An error occurred. SailsJS when lifting: Frontend is missing

i want to lift my sails project, but I got problems with my Gruntfile. When I do my sails lift, I got that error message: The main problem is that the frontend doesn't load after I lifted the project....
Benedikt Faude's user avatar
0 votes
1 answer
34 views

Grunt >> ReferenceError: primordials is not defined

When trying to execute grunt --help , getting the following error Loading "bower_task.js" tasks...ERROR ReferenceError: primordials is not defined I am using node version ->V12.20.1 ...
Amala Rao's user avatar
0 votes
0 answers
76 views

Not able to compile .less Magento 2.4.6-p2

I have a local Magento Cloud 2.4.6-p2 + Docker, local site runs perfect without errors, Im trying to customize the Magento Luma Theme, i created my own custom theme parent from Luma, grunt installed ...
Alex Lopez's user avatar
0 votes
0 answers
24 views

Warning: Uglification failed. Unexpected token: punc «:», expected: punc «,»

I am using grunt and when building javascript I get this error: Warning: Uglification failed. Unexpected token: punc ":", expected: punc ",". The version of the grunt-contrib-...
Dominik Modrzejewski's user avatar
1 vote
0 answers
10 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
0 answers
81 views

Throws SyntaxError while trying to run grunt build --env=devel --platform=android --crosswalk=false

This is the command I am trying to run to build the project with platforms and plugins installed grunt build --env=devel --platform=android --crosswalk=false It is throwing syntax error When I run ...
Yogesh S's user avatar
0 votes
0 answers
8 views

How can I include some specific css file in the prod grunt file?

I am new to grunt and I am struggling with this problem. So I am working on a project where we use separate grunt configs for dev and prod. The problem is that when I work on the dev server I have ...
Andrej code's user avatar
0 votes
0 answers
38 views

grunt-contrib-copy stops with EEXIST error

I am using grunt-contrib-copy to create a build/ folder for my NodeJS express application before deploying it. When running the command, it fails with the error that the folder already exists (Error ...
Alexander's user avatar
  • 372
1 vote
0 answers
28 views

Unable to install grunt in Windows 11 npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE

OS: Windows 11 Node: 16 I am trying to install grunt-cli globally in Windows 11. I tried following command: npm i grunt-cli -g and getting the following error: npm ERR! code ...
Chetan Sachdev's user avatar
0 votes
0 answers
191 views

Mock a function called by child process in Jest

I have been writing unit tests for a grunt task and want to mock "request" that the grunt task encounters during its execution. I am using "exec" to call the grunt task in the ...
Sachin's user avatar
  • 11
0 votes
0 answers
132 views

Im new to laravel and trying to run an existing laravel project, when I run npm install so much "npm WARN deprecated" message appear

When I run npm install, some of the deprecated dependencies are not listed in my package.json as far as I know. So I don't know which dependency to remove of change. Changed some details as my post ...
009's user avatar
  • 1
0 votes
0 answers
44 views

Failing to docker-compose up due to node sass

I need to start project with docker, but when I start docker-compose up I get this errors. I pulled from master org github, and basically when I push my branch to github it creates subdomain for my ...
D'arganatan's user avatar
0 votes
0 answers
72 views

ASP.NET Web App interface is empty when running in VS Community 2022

I have an ASP.NET application that uses grunt to generate static files in wwwroot. When launching application through Visual Studio 2022 (in any configuration), app interface does not appear. Browser ...
Nordennavic's user avatar
0 votes
1 answer
195 views

running grunt --force on moodle installation on local server

I tried to run grant to rebuild amd but instate I ruined everything, all min.js and min.js.map are totally wrong and not working, how could I uninstall all node.js and grunt and re-install a versions ...
Mohammad Farouk's user avatar
0 votes
2 answers
23 views

Which grunt module was used to combine these files?

I found an old project which was using grunt to build and minify many JS files. The JS files, along with the code, have these '@include' annotations which signals which JS files should be included ...
dejoslav's user avatar
0 votes
1 answer
24 views

Grunt run task in a look with dynamic parameters

Using Grunt Js i am trying to minify js file from a folder in to another folder, this is working find when i am hardcoding the paths or if i pass the version folder name through CLI Like: grunt minify ...
Warrior's user avatar
  • 3,224
2 votes
0 answers
108 views

[gruntjs]How to update ES6 import statements in uglify section of Gruntfile.js

module.exports = function(grunt){ grunt.initConfig({ uglify: { 'minify-each':{ options : { beautify: false, mangle: false, ...
Didum's user avatar
  • 31
0 votes
0 answers
339 views

Enable clipboard in automated tests with selenium webdriver with Javascript

How to enable/allow clipboard permission popups in automated tests with Selenium web driver, Javascript, and grunt? Both of the arguments --enable-clipboard , --enable-clipboard-features in below ...
pavankc's user avatar
  • 31
0 votes
0 answers
20 views

How should I design my package.json with grunt dependencies?

Below command gives me the response as shown in screenshot npm list --depth=0 +-- [email protected] +-- UNMET DEPENDENCY grunt-cli@^1.2.0 +-- grunt-contrib-cl[email protected] extraneous +-- grunt-contrib-concat@0....
atharva's user avatar
0 votes
0 answers
25 views

Trying to start local grunt dev server on specific port but it still tries to use port 9000

My VPN is occupying port 9000, so I have to use another one for my local dev server based on Grunt. Thus - I have provided a port in Gruntfile.js - like so: grunt.initConfig({ connect: { server: ...
pesho hristov's user avatar
0 votes
0 answers
23 views

Any way to ask uglify not to rename keys in objects?

I have the following code: fetch(API_URL + "<url>"}`, { method: "POST", headers: { "Content-Type": "application/json", }, ... }) but when I ...
umop's user avatar
  • 2,142
0 votes
0 answers
41 views

grunt ngAnnotate and uglify problem with anonymous functions

given a function function config(LOCALES, $translateProvider, $translatePartialLoaderProvider, tmhDynamicLocaleProvider, $stateProvider, $urlRouterProvider, $httpProvider, $provide, ...
davidetrapani's user avatar
0 votes
0 answers
106 views

Use Gruntfile.ts together with ts-node and ESM package

My package.json: { "type": "module", "scripts": { "grunt": "TS_NODE_TRANSPILE_ONLY=true NODE_OPTIONS=\"--loader ts-node/esm\" grunt" ...
Matthias Günter's user avatar
0 votes
0 answers
35 views

Browser refresh Issue

I'm using a node project. Recently I have formatted my PC and installed node and related software's new version. After that I have copied my old project and installed the node modules. Then everything ...
Developer Rijosh's user avatar
0 votes
1 answer
396 views

Change scoop folder in user - grunt and gulp not working

Hi: I've used scoop to install node and then gulp and grunt; Now I'd want to change the \scoop\ folder from my current user folder C:\users\mycurrentuserfolder\scoop to C:\user\anotheruserfolder\scoop ...
Riccardo De Contardi's user avatar
0 votes
0 answers
10 views

Grunt watch + grunt-alert to inform about errors via Slack

I have working grunt watch and grunt-alert to post push messages via Slack. Can I combine the to push notifications of errors and warnings? watch: { styles: { files: ['less/**/*.less'], ...
Max.A's user avatar
  • 71
0 votes
0 answers
194 views

JavaScript Error - RangeError: Maximum call stack size exceeded

I recently integrated "babel-plugin-istanbul": "^6.1.1" in my application and created babel.config.js file. Before I was using "presets": [ "env" ]...
Gaurav's user avatar
  • 1,332
0 votes
0 answers
63 views

Grunt is not able to detect the file

I am developing a new moodle plugin. But when I run grunt in my plugin folder grunt amd. directory structure local->webcam->amd amd has two folder build and src and my file is in src folder I am ...
Rohit kumar's user avatar
0 votes
0 answers
43 views

Warning: spawn UNKNOWN Use --force to continue

getting the error while compiling sass using grunt. also, use ruby sass and compass. grunt watch --force is not working also. any hint to fix? uninstalled all the dependencies including node and try, ...
Kanchana N's user avatar
0 votes
0 answers
45 views

Routing and custom widget issues after upgrading dojo and node versions

We are facing couple of issue with dojo framework after we upgrade our node and npm version, please find the details below and it will be of great help if you could please provide inputs on how this ...
Jithendra's user avatar
0 votes
0 answers
31 views

Bower component are not created on mvn command

My bower_component are not created. I have one dev profile inside my pom.xml file and when I execute the command mvn clean install -P dev I get error Warning: Unable to read "C:\test-widgets\...
John333's user avatar
  • 75
0 votes
0 answers
30 views

Grunt - Minifiying hundreds of JS files in a specific order

My current project is setup into 3 main JS files. 1.js (contains jquery, bootstrap etc) around 15 js files 2.js (contains other addons like recaptcha, SAP stuff etc) around 20 files 3.js (contains ...
Ghirasim Daniel's user avatar
0 votes
0 answers
122 views

Npm scripts vs gulp or similar test runners?

What are the advantages and disadvantages of both? I currently have npm scripts for test execution like this in package.json: "scripts": { "test": "npx playwright test&...
mark_Ruff's user avatar
2 votes
4 answers
2k views

Property left of ForInStatement expected node to be of a type ["VariableDeclaration","LVal"] but instead got undefined Use --force to continue

I have a big problem. We use angular.js application and maven to build our application.Previosly everyhing worked when we build our application with bower.json. And from yesterday we got this error ...
John333's user avatar
  • 75
0 votes
0 answers
25 views

how to run existing grunt command from scripts in package.json

i want to be able to run a grunt command via the scripts section of a package.json file that resides in a different directory than the Gruntfile. My folder structure is the following: design ...
Andreas Traganidas's user avatar
0 votes
0 answers
65 views

grunt-browserify error - utf8 is not a function while parsing file

grunt browserify task is defined like this inside Gruntfile.js browserify: { infra: { options: { browserifyOptions: { debug: ...
amangtm's user avatar
0 votes
1 answer
387 views

Issue running grunt command Error: Cannot find module 'has'

I am facing errors with grunt commands for a dojo project with following version of node, npm and grunt-cli grunt-cli version : 0.1.13 node version : 6.17.1 npm version : 3.10.10 Getting below error ...
manasa venkatesh's user avatar
1 vote
0 answers
208 views

Plugin is not a function

I get this error: Running "postcss:dist" (postcss) task Fatal error: plugin is not a function I think it's coming from this grunt.js file when I execute: grunt build postcss: { ...
Blckpstv's user avatar
  • 117
0 votes
1 answer
13 views

How to use grunt to copy a series of files to the same directory they come from?

I have a series of directories like... component A - t9n - componentAT9n.json component B - t9n - componentBT9N.json Where each of these directories I need to duplicate the one file ending in ...
Carson Wood's user avatar
  • 1,204
0 votes
1 answer
251 views

Gatsby throws compatible issues with new version 4.x but it is working well in 2.x?

i tried to run "gatsby develop" in my application it throws following compatible issues, My node version is 16.17.0 and gatsby is 4.24.1. i can guess that it says to upgrade those depdencies ...
Mister X's user avatar
  • 3,412
0 votes
0 answers
157 views

Best possibilities to convert the gulp tasks to grunt?

As my package contains the java script folder it contains around 7 files which consist of gulp tasks, now i need to migrate those gulp tasks to grunt. As i checked the grunt overview it seems ...
Mister X's user avatar
  • 3,412
0 votes
1 answer
75 views

how to make a custom build for tom-select.js?

I can't figure out how to make a custom build for tom-select.js. In the gruntfile.js I see this: // build tom-select.custom.js /* this file is generated by grunt when calling `npm run build -- --...
Giedrius's user avatar
  • 138
0 votes
1 answer
289 views

How to configure grunt file to minify JavaScript and CSS in .NET 6?

I am new to grunt. Can anybody tell me how to configure grunt in .NET 6 MVC project? I want that all the JavaScript files located at "wwwroot\lib\custom\js" folder should get minify and go ...
Shaksham Singh's user avatar
0 votes
1 answer
38 views

Gruntfile.js: Handlling grunt-http callback...ERROR

I am working on grunt-http. If I pass an invalid credential then it's throwing an error like: Running "http:test_grunt_http" (http) task Fatal error: 401 {"status":"error"...
Art Bindu's user avatar
  • 779
-1 votes
1 answer
805 views

Why not showing less file path in browser after running grunt in magento2?

While I am running grunt, I am not able to see less file paths into the browser inspect element in magento2click here
Hardik Viramgama's user avatar
0 votes
0 answers
113 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
1k views

Receiving error Error: Unable to create directory after Grunt update

Have updated grunt from 1.0.4 to 1.3.0, after upgrade if i run grunt , receiving the following error. Verifying property mkdir.doc exists in config...OK File: [no files] Options: mode=null, create=[&...
Subburaj's user avatar
  • 5,124
0 votes
0 answers
135 views

How to run a minified Express.js server

I have a minified Express.js project in the 'dist' folder. Grunt uglifies the entire 'dist' folder and places the results in a 'build' folder. Up to this point everything is fine. But, nothing runs ...
O. K.'s user avatar
  • 33

1
2 3 4 5
182