You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, quick disclaimer: I'm not 100% sure this is an issue with resolver. This issue is also a little dense to explain clearly, so I'm attaching a PR which may help demonstrate / fix the issue.
When I run catalogEntriesByType('model') (specifically from data_adapter.js#L354), browserify modules that have the word "model" in their module definition are included in the returning array.
This is causing a ember.js to throw an error later when it tries to lookup a module like npm:my/cool/model via data_adapter.js#L362, essentially resulting in something like getOwner(this)._lookupFactory('model:npm:my/cool/model') via this which throws Error message: Invalid Fullname, expected: 'type:name' got: model:npm:prosemirror/dist/model.
Please note above, the issue is specifically caused by the lookup trying to add model: on the the front of the existing package name which makes it violate the naming constraints of a module.
In case you are wondering how I ran into this, the Data tab on Ember Inspector breaks when we have a NPM package installed via Ember Browserify that has the word "model" in the module definition.
The text was updated successfully, but these errors were encountered:
ryanlabouve
added a commit
to ryanlabouve/ember-resolver
that referenced
this issue
Oct 12, 2016
So, quick disclaimer: I'm not 100% sure this is an issue with resolver. This issue is also a little dense to explain clearly, so I'm attaching a PR which may help demonstrate / fix the issue.
When I run
catalogEntriesByType('model')
(specifically from data_adapter.js#L354), browserify modules that have the word "model" in their module definition are included in the returning array.This is causing a ember.js to throw an error later when it tries to lookup a module like
npm:my/cool/model
via data_adapter.js#L362, essentially resulting in something likegetOwner(this)._lookupFactory('model:npm:my/cool/model')
via this which throwsError message: Invalid Fullname, expected: 'type:name' got: model:npm:prosemirror/dist/model
.Please note above, the issue is specifically caused by the lookup trying to add
model:
on the the front of the existing package name which makes it violate the naming constraints of a module.In case you are wondering how I ran into this, the
Data
tab on Ember Inspector breaks when we have a NPM package installed via Ember Browserify that has the word "model" in the module definition.The text was updated successfully, but these errors were encountered: