Git Product home page Git Product logo

Comments (6)

yads avatar yads commented on August 13, 2024 2

For others who end up here potentially I was having a similar issue, but instead of complaining about ember-mocha, it was complaining about mocha itself

WARNING in ./node_modules/mocha/lib/mocha.js 268:19-40
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/mocha/browser-entry.js
 @ /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js
 @ multi /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/l.js /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js

WARNING in ./node_modules/mocha/lib/mocha.js 273:23-71
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/mocha/browser-entry.js
 @ /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js
 @ multi /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/l.js /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js

WARNING in ./node_modules/mocha/lib/mocha.js 319:24-35
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/mocha/browser-entry.js
 @ /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js
 @ multi /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/l.js /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js

WARNING in ./node_modules/mocha/lib/mocha.js 368:35-48
Critical dependency: the request of a dependency is an expression
 @ ./node_modules/mocha/browser-entry.js
 @ /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js
 @ multi /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/l.js /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js

ERROR in ./node_modules/browser-stdout/index.js
Module not found: Error: Can't resolve 'stream' in '/Users/vkazakov/dev/Mothership/frontend/node_modules/browser-stdout'
 @ ./node_modules/browser-stdout/index.js 1:21-38
 @ ./node_modules/mocha/browser-entry.js
 @ /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/tests.js
 @ multi /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gn/T/broccoli-45364DphLF1pm2hH/cache-485-bundler/staging/l.js /private/var/folders/dt/3jgv80257vj12ly_067bt5z80000gcleaning up...
Build Error (Bundler)

webpack returned errors to ember-auto-import

Solved it with an exclude: ['mocha'] configuration.

from ember-auto-import.

ef4 avatar ef4 commented on August 13, 2024 1

That's pretty weird. It should not be trying to package any ember addons like this.

Please run DEBUG="ember-auto-import:*" ember build and share the output.

from ember-auto-import.

H1D avatar H1D commented on August 13, 2024

@ef4 OK
ember-auto-import.log

from ember-auto-import.

ef4 avatar ef4 commented on August 13, 2024

What version of ember-mocha is this? It looks like versions prior to 0.14.0 were not properly marked as an ember-addon, and that could cause this behavior.

As a workaround, you can tell ember-auto-import to ignore ember-mocha:

// In your ember-cli-build.js file
let app = new EmberApp(defaults, {
  autoImport: {
    exclude: ['ember-mocha']
  }
});

from ember-auto-import.

H1D avatar H1D commented on August 13, 2024

Thx it worked!

Do you need a PR with a note about this in README?

from ember-auto-import.

ef4 avatar ef4 commented on August 13, 2024

I think I'll wait and see if this becomes a FAQ. exclude is documented.

from ember-auto-import.

Related Issues (20)

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.