Closed gauravbhavsar closed 7 years ago
Issue was in my requireJS grunt task. Solved
@gauravbhavsar I met the same error, may I know how did you resolve this issue by changing the grunt task? Thanks a lot
@gauravbhavsar,
I am also seeing the same issue with webpack. Could you please assist?
Kind Regards, Rachidi
@siecj @blowsie I was creating minified and ulgy js file using requireJS and problem with configuration.
requirejs: {
compile: {
options: {
generateSourceMaps: true,
logLevel: 4,
baseUrl: "base/",
include: "./main",
out: "dist/main.js",
preserveLicenseComments: false,
optimize: "uglify2",
mainConfigFile: "scr/main.js"
}
}
}
I change above code to
requirejs: {
js: {
options: {
uglify2: {
mangle: false
},
baseUrl: "app/",
mainConfigFile: "app/main.js",
name: "main",
out: "dist/main.js",
preserveLicenseComments: false,
optimize: "uglify2",
}
}
}
this create new minified and ulgify version of js at dist/main.js
and I am now using this file on production environment.
sorry for late reply :)
I am using requireJs in my project.
Require config :
Gruntfile :
after runing grunt I am getting error :
error is in this :
$.jstree.defaults.alltrigger=null
Any idea why
$.jstree
is undefined ?Thanks in advance.