ember-cli-mirage: Uncaught Error: You must pass owner to startMirage()
When converting an Ember 3.24 app to use embroider, we can no longer boot the app from the Ember dev server.
The app crashes in the browser, with an error:
Uncaught Error: You must pass `owner` to startMirage()
at startMirage (start-mirage.js:34)
at startMirage (ember-cli-mirage.js:59)
at Object.initialize (ember-cli-mirage.js:53)
at index.js:124
at Vertices.each (dag-map.js:231)
at Vertices.walk (dag-map.js:145)
at DAG.each (dag-map.js:75)
at DAG.topsort (dag-map.js:83)
at App._runInitializer (index.js:151)
at App.runInitializers (index.js:122)
I will endeavour to create a repo to reproduce the issue - the contributing guidelines pointed me to https://github.com/miragejs-archive/ember-cli-mirage-boilerplate which appears unmaintained, and is using classic Ember code (our issue is on an Octane 3.24 app).
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 21 (3 by maintainers)
Hi @rahulk94 , I have the same “You created a second Pretender instance” problem on an embroider project. After tracing code, I find the setting
can turn off the warning. And I find https://github.com/xg-wang/ember-realworld-fastboot/blob/master/config/environment.js#L41 have the same setting;