Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "temporary" stop-gap for supporting nested addons #93

Closed
wants to merge 1 commit into from

Conversation

seanjohnson08
Copy link

When upgrading to 2.7.0, I'm seeing the "sourcemaps not defined" issue again. It seems that the previous stopgap wasn't as future-proof as we'd like it to be. :)

I've switched from duck-typing against app.import to app.options, since that's the accessor that fails every time this bug resurfaces.

Here's the previous PR: https://github.com/ef4/ember-browserify/pull/30/files

When upgrading to 2.7.0, I'm seeing the "sourcemaps not defined" issue again. It seems that the previous stopgap wasn't as future-proof as we'd like it to be. :)

I've switched from duck-typing against `app.import` to `app.options`, since that's the accessor that fails every time this bug resurfaces.
@asakusuma
Copy link
Collaborator

@seanjohnson08 can you confirm that this works pre 2.7.0?

@stefanpenner
Copy link
Collaborator

how does this deal with dupes of deps across nested addons?

@caseklim
Copy link

caseklim commented Aug 2, 2016

In regards to @asakusuma 's question, this was not entirely working before. We started experiencing this issue with ember-cli at 2.6.3, and bumping the version down to 2.6.2 temporarily solved the issue at the app level.

I'm now experiencing the issue again in an addon that uses ember-browserify where I pinned ember-cli to 2.6.2. When I hook up my app to an engine that uses the addon using ember-browserify I'm experiencing the error again.

@caseklim
Copy link

caseklim commented Aug 2, 2016

@stefanpenner can confirm that @seanjohnson08 's fix solved the error in my situation

@stefanpenner
Copy link
Collaborator

stefanpenner commented Aug 2, 2016

@stefanpenner can confirm that @seanjohnson08 's fix solved the error in my situation

This wasn't actually my question, this appears to be adding a new feature. One that opens the door to a currently unaddressed problem, which is how does one deal with duplicate dependencies from discrete add-ons. I don't believe we can accept this feature without an answer to ^.

@cklimkowsky if there was a regression in ember-cli 2.6.3, we should investigate it, and come up with a solution that doesn't require this new feature. Do you have a reproduction of this described failure?

@caseklim
Copy link

caseklim commented Aug 2, 2016

@stefanpenner I was just providing additional context. When you say a reproduction, do you mean with ember-cli 2.6.3 or the issue I described with my app/engine/addon situation?

@stefanpenner
Copy link
Collaborator

@cklimkowsky awesome, the context is much appreciated!

do you mean with ember-cli 2.6.3 or the issue I described with my app/engine/addon situation?

Yes, a reproduction for the 2.6.3 regression would be great, do you mind opening a new issue (on this repo) describing the symptoms? That way we can track the two issues independently.

@stefanpenner
Copy link
Collaborator

stefanpenner commented Aug 2, 2016

@cklimkowsky im also unsure if 2.6.2 and 2.6.3 resulted in any breaking changes: diff -> ember-cli/ember-cli@v2.6.2...v2.6.3 Maybe its a different dependency?

@caseklim
Copy link

caseklim commented Aug 3, 2016

@stefanpenner hm, I just tried reproducing the 2.6.3 issue and I unfortunately can't 😕

@asakusuma
Copy link
Collaborator

@seanjohnson08 are you trying to upgrade to ember-cli 2.7 or ember 2.7?

cc @tjni

@asakusuma asakusuma mentioned this pull request Aug 8, 2016
@derrickshowers
Copy link

@asakusuma @stefanpenner I've also run into this issue when bumping ember-cli to 2.7. No issues on 2.6.3.

@stefanpenner
Copy link
Collaborator

@derrickshowers can you share a reproduction, would love to dig in.

@derrickshowers
Copy link

@seanjohnson08 Have you had any luck (or know of a way) reproducing this on a fresh ember-cli app? Tried including ember-browserify as a dependency and a downstream dependency, but can't get to reproduce the error.

In the app I'm working with, it's reproducible every time I upgrade ember-cli to 2.7.0. 🤔

@jwlawrence
Copy link

Guess I'll jump on the wagon. I'm getting this error after updating ember-cli to 2.7.0 and running ember init with ember-browserify@1.1.12. Not sure what other information I can provide that would be helpful, but I didn't have this issue on ember-cli@2.6.2.

@nathanhammond
Copy link
Collaborator

100% of this thread is LinkedIn people. We know that this is completely broken. We'll have a story for this at some point next week.

@stefanpenner
Copy link
Collaborator

will be superseded by #100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants