Comments (6)
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.
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.
from ember-auto-import.
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.
Thx it worked!
Do you need a PR with a note about this in README?
from ember-auto-import.
I think I'll wait and see if this becomes a FAQ. exclude
is documented.
from ember-auto-import.
Related Issues (20)
- Cannot find require and module definitions when upgrading to v2 HOT 1
- `instanceof` fails in classic mode HOT 4
- css imports not working until referenced
- Embroider app doesn't detect runtime changes of v2 addon HOT 1
- Transitive Dependency Resolution Breaks Build on Recursive v2 Addons HOT 2
- "Require is not defined" HOT 1
- Add polyfill use case to FAQ HOT 4
- Dynamic import missing fingerprint URL HOT 1
- Add option to disable decorator transforms in case we are using a different decorator transform plugin HOT 1
- Importing does not work HOT 7
- Error loading fingerprinted lazy engine assets after moving to ember-auto-import v2 HOT 1
- "import * as ... from ..." syntax breaks when upgrading from ember-auto-import 2.6.3 to 2.7.2 HOT 2
- issue with gts/gjs if ts transform is enabled HOT 13
- error after ember upgrade - Module not found: Error: Can't resolve 'ember-qunit/qunit-module' HOT 2
- Strange import behavior with pdfjs v4 HOT 2
- `allowAppImports` entries are now allowed to import from other `allowAppImports` entries. HOT 4
- No AMD shim when alias is referencing absolute path
- Virtual modules from plugins are not importable
- Cannot dynamically import a component with `allowAppImports`
- v2 addons are not bundled when listed in dependencies of lazy-loading engine (weirdo fix attached)
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 ember-auto-import.