generator-yeogurt icon indicating copy to clipboard operation
generator-yeogurt copied to clipboard

jQuery does not work at all

Open MaximilianLloyd opened this issue 8 years ago • 3 comments

i have this code

// Main javascript entry point // Should handle bootstrapping/starting application

'use strict';

import $ from 'jquery';

$(() => { let licenses = $('.license-item');

licenses.click(() => { $(this).hide(); });

});

I have tried with many other functions such as .css and .animate, they do not work either.

MaximilianLloyd avatar May 06 '16 17:05 MaximilianLloyd

Hey @MaximilianLloyd,

I can't seem to replicate the issue you are having, can you post the contents of your .yo-rc.json file (it's a hidden file found in the root folder of your project). This will help me diagnose the issue quicker.

In the meantime, sometimes deleting the node_modules folder and then re-running npm install in the root folder of your project can fix some issues. Feel free to try that out.

larsonjj avatar Jun 11 '16 02:06 larsonjj

I am having the same issue, except with ES5.

I don't appear to be able to get Jquery to work at all, I am deleting the node_modules and reinstalling them as I am writing this, but if I can shed some light on this issue I will do my best to help with error logs etc.

seniorjono avatar Jul 19 '16 16:07 seniorjono

{ "generator-yeogurt": { "config": { "projectName": "GSK", "htmlOption": "nunjucks", "jsPreprocessor": "none", "cssOption": "sass", "sassSyntax": "scss", "testFramework": "none" }, "version": "1.5.3" } }

This is the contents of my yo-rc file.

seniorjono avatar Jul 19 '16 16:07 seniorjono