Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install breaks tabs... #1

Open
hy-brasil opened this issue Jan 22, 2015 · 2 comments
Open

Install breaks tabs... #1

hy-brasil opened this issue Jan 22, 2015 · 2 comments

Comments

@hy-brasil
Copy link

Hello,
I have ember-idx-tabs installed and am very happy with it.
So I decided to install the list as well.
I did the:
npm install --save-dev ember-idx-list

And did an ember build.
Now I get an error immediately in the app:

Uncaught TypeError: undefined is not a function
on
initializers/idx-tabs.js:13

The problem goes away when I npm uninstall idx-list

ember version info:
version: 0.1.2
node: 0.10.24
npm: 2.1.3

I have installed ember-addons.bs_for_ember. And am using bits from that...
Should I have done that?
Thanks

@hy-brasil
Copy link
Author

My Brocfile.js looks like this:
/* global require, module */

var EmberApp = require('ember-cli/lib/broccoli/ember-app');

var app = new EmberApp();
app.import('bower_components/bootstrap/dist/js/bootstrap.js');
app.import('bower_components/bootstrap/dist/css/bootstrap.css');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-core.min.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-modal.min.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-alert.min.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-button.min.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-progressbar.min.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-breadcrumbs.min.js');
app.import('bower_components/ember-addons.bs_for_ember/dist/js/bs-nav.min.js');
app.import('bower_components/d3/d3.js');
app.import('bower_components/ember-data/ember-data.js');
app.import('bower_components/jquery-cookie/jquery.cookie.js');
//app.import('bower_components/ember-components/dist/globals/main.js');
//app.import('bower_components/ember-utils/dist/globals/main.js');

//app.import('node_modules/ember-radio-button/app/components/radio-button.js');
//app.import('bower_components/ic-ajax/lib/main.js');
var mergeTrees = require('broccoli-merge-trees');
var pickFiles = require('broccoli-static-compiler');

var bootstrapTree =
pickFiles('bower_components/bootstrap/fonts', {
srcDir: '/',
files: [
'glyphicons-halflings-regular.svg',
'glyphicons-halflings-regular.ttf',
'glyphicons-halflings-regular.eot',
'glyphicons-halflings-regular.woff'
],
destDir: '/fonts'
});

// Use app.import to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.

module.exports = mergeTrees([app.toTree(),bootstrapTree]);

@hy-brasil
Copy link
Author

Just wondering would this help at all?
indexiatech/ember-idx-tabs#2

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant