ember-cli / ember-cli/ember-resolver

Resolver does not honor the loader noconflict aliases

Open
#629 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
87
Forks
100
PR merge metrics
No merged PRs in 30d

Description

If we use the `loader.noConflict` method from the [loader.js](https://github.com/ember-cli/loader.js/blob/master/lib/loader/loader.js), with the following aliases,

```js
loader.noConflict({
require: 'myRequire'
})
```

the app fails with an error
```
Uncaught TypeError: Cannot read property 'entries' of undefined
at new ModuleRegistry (vendor.js:formatted:68415)
```
because there is no global `require` object, we only have `myRequire` now

Related to https://github.com/ember-cli/loader.js/issues/139

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.