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

Upgrading Ember breaks namespaces? #349

Open
BlueRaja opened this issue Jun 22, 2020 · 3 comments
Open

Upgrading Ember breaks namespaces? #349

BlueRaja opened this issue Jun 22, 2020 · 3 comments

Comments

@BlueRaja
Copy link

We're attempting to upgrade from Ember 2.18 to Ember 3.16. Most things are working, but our CSS is borked. The problem seems to be that ember-component-css is injecting namespace classes in the CSS, but not in the actual DOM.

We're still using the old syntax for most things, including

export default Component.extend({
  ...
});

Could this be the cause?

Workaround:

In environment.js, add

const ENV = {
  ...
  'ember-component-css': {
    namespacing: false,
  },
}

then everywhere you are using &{ ... } in the root of your SCSS needs to be replaced with a manually-created root class

@webark
Copy link
Owner

webark commented Jul 11, 2020

Yes. This stopped working around ember 3.15 :/ I'm sorry. I have spent part of the week finally making some final progress on a solutions and should have soon.

Sorry for the broken functionality and the frustration I'm sure it has caused :(

@derekwsgray
Copy link

Is this still an issue? I need the styleNamespace for working with D3

@webark
Copy link
Owner

webark commented Dec 3, 2022

I have not been working on ember for several years. There was rewrite that I did of this "ember-cli-styles", but I am not commuting to maintaining that ☹️ There has been some success with people using it however. If there are changes you discover, or improvements you want to make, I can review the PRs for either.

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

No branches or pull requests

3 participants