Closed bobbywarner closed 13 years ago
Actually I am not able to get the workaround to work that was suggested in the mailing list. I have tried with Grails 2.0.0.M2 and the latest 2.0.0.BUILD-SNAPSHOT and receive this error with both. Please let me know.
I found this is duplicate loading bootstrap-less issue. I've changed bootstrap module dependency rules. A bootstrap resource depends on bootstrap-css and bootstrap-js. In case of lesscss-resources plugin is installed, bootstrap resource depends on bootstrap-less and bootstrap-js. Please check v1.3.0.7. It should resolved this issue.
The resources framework throws an error after installing this plugin. There is a workaround, but hopefully this issue can be resolved so the workaround is no longer needed. Please let me know, thanks Bobby!
Error 2011-09-30 14:20:35,655 [Thread-10] ERROR LesscssResourceMapper error compiling less file: .grails/2.0.0.M2/projects/sampleapp/tomcat/work/Tomcat/localhost/sampleapp/grails-resources/plugins/twitter-bootstrap-0.3.1/css/bootstrap.less
Error 2011-09-30 14:20:35,686 [Thread-10] ERROR plugins.DefaultGrailsPluginManager Error configuring dynamic methods for plugin [resources:1.0.2]: Skipping prepare resource for [/plugins/twitter-bootstrap-0.3.1/css/bootstrap.less] - This resource is declared in module [bootstrap-less] as well as module [bootstrap]
This can be resolved by doing this: bootstrap { if (configTagLib) { dependsOn 'bootstrap-fixtaglib' } resource url:[plugin: 'twitter-bootstrap', dir: 'css', file: (dev ? cssFile : cssminFile)], attrs:attrs, disposition: 'head', exclude:'minify', bundle: 'bundle_bootstrap' }
http://grails.1312388.n4.nabble.com/Twitter-Bootstrap-Plugin-Error-td3860925.html