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

styleNamespace empty string when using in both an app and addon #302

Open
Skwai opened this issue Oct 10, 2018 · 7 comments
Open

styleNamespace empty string when using in both an app and addon #302

Skwai opened this issue Oct 10, 2018 · 7 comments

Comments

@Skwai
Copy link

Skwai commented Oct 10, 2018

Currently get styleNamespace as a blank string for components when using ember-component-css in both an addon of ours and the main application

@webark
Copy link
Owner

webark commented Oct 11, 2018

@Skwai this probably is a known issue.. :/ you could try the experimental tag, or the actively developed branch in #300

@sunasra
Copy link

sunasra commented Feb 1, 2019

@webark I am facing the same issue. Can you please let me know when do you have plan to fix this in normal release?

@webark
Copy link
Owner

webark commented Feb 1, 2019

@sunasra the plan is in place, but I am unable to set a firm timeline for when it will be in a stable release. I'm very sorry that this issue is around :( Through using peerDependecies, and version consistency, you are able to mitigate the issue, though that is a very less then ideal way to solve this issue. I'm sorry for the inconvenience.. :(

@sunasra
Copy link

sunasra commented Feb 5, 2019

@webark Thanks for your kind reply. I have tried installing experimental package but faced some minor issues. I am not sure how I can use peerDependecies with exact version. I read that peerDependecies does not automatically install with npm install command.

To unblock my team, for now I have build addon package without ember-component-css

@ariesshrimp
Copy link

this started happening to me today, i'm not sure i understand what to make of it...

this new component has no styleNamespace...

but this one does...

@webark
Copy link
Owner

webark commented May 23, 2019

@Skwai @joefraley please try this with the latest 0.6.9 version and see if that fixes your issue. All your addons and app should be to this version or higher.

@akaravashkin
Copy link

Have an addon (by ember-engines) with v0.7.4 and tagless component.

styleNamespace is empty string if I don't have component.js file like in @joefraley case.

If I create "empty" file component.js:

import Component from '@ember/component';
import layout from './template';

export default Component.extend({
  tagName: '',
  layout
});

styleNamespace starts to work.

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

5 participants