Comments (6)
I ran into the same issue. In my case it was because I accidentally installed grunt-concat instead of grunt-contrib-concat. Uninstalling grunt-concat fixed the issue.
from grunt-contrib-concat.
Run npm cache clean and reinstall grunt and you should be good to go.
On Nov 15, 2012, at 1:37 PM, Matt Dawson [email protected] wrote:
Hi all -
I've been successfully running contrib-concat version 0.1.0 on a project.
When upgrading to 0.1.1, I'm suddenly getting the error
Warning: Cannot read property 'src' of undefined Use --force to continue.
when running my concat targets. The config I'm using for concat can be
found here: https://gist.github.com/4080345
Matt
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/1.
from grunt-contrib-concat.
I’m having the same issue. Running npm cache clean
and reinstalling grunt (npm uninstall grunt && npm install grunt
) didn’t make a difference.
from grunt-contrib-concat.
We just released a new version of Grunt on monday. Have you seen:
http://gruntjs.com/getting-started
?
from grunt-contrib-concat.
In my case it was caused by still using Task#file
(pre-0.4.0 style) instead of iterating over Task#files
: http://gruntjs.com/api/inside-tasks#inside-multi-tasks
from grunt-contrib-concat.
This issue should be almost alive. I have the same problem with a fresh install:
concat: {
options: {
separator: ';',
stripBanners: true,
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */',
footer: '\n/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
dev: {
files: {
'appChrome/js/Vendor.min.js': [
'app/Vendor/firebase/firebase.js',
'app/Vendor/jquery/dist/jquery.js',
'app/Vendor/jasmine/lib/jasmine-core/jasmine.js',
'app/Vendor/jasmine-jquery/lib/jasmine-jquery.js',
'app/Vendor/jasmine-jstd-adapter/src/JasmineAdapter.js',
'app/Vendor/mootools-core/dist/mootools-core.min.js'
],
'appWeb/js/Vendor.min.js': [
'app/Vendor/firebase/firebase.js',
'app/Vendor/jquery/dist/jquery.min.js',
'app/Vendor/jasmine/lib/jasmine-core/jasmine.js',
'app/Vendor/jasmine-jquery/lib/jasmine-jquery.js',
'app/Vendor/jasmine-jstd-adapter/src/JasmineAdapter.js',
'app/Vendor/pnotify/*.js'
]
}
},
prod: {
files: {
'appChrome/js/Vendor.min.js': [
'app/Vendor/firebase/firebase.js',
'app/Vendor/jquery/dist/jquery.js',
'app/Vendor/mootools-core/dist/mootools-core.js'
],
'appWeb/js/Vendor.min.js': [
'app/Vendor/firebase/firebase.js',
'app/Vendor/jquery/dist/jquery.js',
'app/Vendor/pnotify/*.js'
]
}
}
},
from grunt-contrib-concat.
Related Issues (20)
- how to read more than one files by using wildcard? HOT 1
- Remove peerDeps HOT 1
- relative url in css/js file
- stripBanners is backwards
- Snap-Ci concat.generated config error HOT 1
- File ordering changed since update?
- d in grunt
- node 7.0.0 breaks task
- JS Stacktrace Crash on SourceMaps HOT 1
- Please either add css concatenation support, or mention in the documentation that it is impossible with this tool
- Cannot convert undefined or null to object when npm install.
- Unable to concatenate file with multiple sourcemaps HOT 3
- concat in specific order; not alphabetically HOT 1
- Concatenating files that end in comments adds the first line of new files as comments too
- Concat only works with 'files' object HOT 1
- Concat minified files with source map results in line offset HOT 1
- update for source-map 0.7.x HOT 2
- Upgrade Chalk HOT 1
- Is it possible to map error traces back to source files?
- options.process undefined, even though it's not HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-contrib-concat.