Created
November 26, 2014 13:35
-
-
Save kevinansfield/a818332d7ff3f3b1bab8 to your computer and use it in GitHub Desktop.
outputPaths breaking ember-cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* global require, module */ | |
| var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
| var pickFiles = require('broccoli-static-compiler'); | |
| var mergeTrees = require('broccoli-merge-trees'); | |
| var app = new EmberApp({ | |
| outputPaths: { | |
| app: { | |
| css: { | |
| app: '/assets/instographers.css', | |
| admin: '/assets/instographers-admin.css' | |
| }, | |
| // without 'js', `ember serve` won't run with the error: | |
| // "Cannot call method 'slice' of undefined" | |
| // at EmberApp.javascript (/Users/kevinansfield/code/instaphotographers/client/node_modules/ember-cli/lib/broccoli/ember-app.js:650:32) | |
| js: '/assets/instographers.js' | |
| } | |
| } | |
| }); | |
| app.import('bower_components/bootstrap-sass-official/assets/javascripts/bootstrap/modal.js'); | |
| var bootstrapFonts = pickFiles('bower_components/bootstrap-sass-official/assets/fonts/bootstrap', { | |
| srcDir: '/', | |
| destDir: '/assets/bootstrap' | |
| }); | |
| module.exports = mergeTrees([app.toTree(), bootstrapFonts]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ client git:(master) ✗ ember serve | |
| version: 0.1.2 | |
| Livereload server on port 35729 | |
| Serving on http://0.0.0.0:4200/ | |
| Arguments to path.join must be strings | |
| TypeError: Arguments to path.join must be strings | |
| at path.js:360:15 | |
| at Array.filter (native) | |
| at Object.exports.join (path.js:358:36) | |
| at /Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/index.js:35:25 | |
| at $$$internal$$initializePromise (/Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/node_modules/rsvp/dist/rsvp.js:517:9) | |
| at new $$rsvp$promise$$Promise (/Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/node_modules/rsvp/dist/rsvp.js:828:9) | |
| at SassCompiler.updateCache (/Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/index.js:34:10) | |
| at /Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/node_modules/broccoli-caching-writer/index.js:92:34 | |
| at $$$internal$$tryCatch (/Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/node_modules/rsvp/dist/rsvp.js:470:16) | |
| at $$$internal$$invokeCallback (/Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/node_modules/rsvp/dist/rsvp.js:482:17) | |
| at $$$internal$$publish (/Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/node_modules/rsvp/dist/rsvp.js:453:11) | |
| at $$rsvp$asap$$flush (/Users/kevinansfield/code/instaphotographers/client/node_modules/broccoli-sass/node_modules/rsvp/dist/rsvp.js:1531:9) | |
| at process._tickCallback (node.js:419:13) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you found a solution to this? I'm getting the same thing.