Giter Site home page Giter Site logo

Comments (5)

joliss avatar joliss commented on June 29, 2024

Hm, I can't reproduce this with the following Brocfile.js - it builds fine:

var broccoliSource = require('broccoli-source');
var src = new broccoliSource.WatchedDir('src');
module.exports = src;

Can you dig some more to narrow down the problem?

from broccoli-source.

woshilapin avatar woshilapin commented on June 29, 2024

Yes, I was digging more into it and it seems that at some point, I broke Broccoli as the whole. So it's not related to broccoli-source. And then, I saw your comment. And I understood. I reduced my file so much that I didn't even have a module.exports. This is what cause the break... Yes, you can blame me. Anyway, I take the opportunity to thank you for Broccoli (you're one of the main dev, right?) and please excuse me for the noise.

from broccoli-source.

MahnazSheikhi avatar MahnazSheikhi commented on June 29, 2024

hello.
I came to your problem, how do I solve this issue ?

from broccoli-source.

woshilapin avatar woshilapin commented on June 29, 2024

As explained above, do you have module.exports statement in your file?

from broccoli-source.

MahnazSheikhi avatar MahnazSheikhi commented on June 29, 2024

This is the file I used
-------------------------------------- Brocfile.js---------------------
var tree = './app';
var ES6Modules = require('broccoli-es6modules');
var amdFiles = new ES6Modules(tree, {
format: 'amd',
bundleOptions: {
entry: 'app.js',
name: 'amdApp'
}

});

I realized due to the link below : module.exports is the object that's actually returned as the result of a require call. by
http://stackoverflow.com/questions/5311334/what-is-the-purpose-of-node-js-module-exports-and-how-do-you-use-it

but I cleaned all the lines ,The same problem came again.

from broccoli-source.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.