-
Notifications
You must be signed in to change notification settings - Fork 286
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
Production embroider build – empty Components tab #2125
Comments
Thanks @NullVoxPopuli I did some tests and found that a single line from your app.import('vendor/ember/ember-template-compiler.js'); I've pushed this to the |
@NullVoxPopuli is this something people should be adding in manually? |
Adding that line to |
it should not, adding the template-compiler like this is (imo) "intimate API" for run-time compiled components, which 99.999% of apps are not doing 🙃 |
@NullVoxPopuli do you have any insight about why that fixes the issue in |
I am also seeing this in an app (private, unforch) running:
|
@chancancode any ideas here? |
somehow _DEBUG_RENDER_TREE is false https://github.com/emberjs/ember-inspector/blob/main/ember_debug/libs/capture-render-tree.js#L10 |
it probably is getting set. BUT:
whereas embroid build overwrites:
manually setting _DEBUG_RENDER_TREE in environment.js EmberENV will make inspector work |
Can confirm that setting |
@NullVoxPopuli in limber I see some duplicate modules in the source for "@ember/-internals/environment/index". One without glimmer DEBUG enabled and another with DEBUG disabled... the one with DEBUG enabled is processed and thus sets _DEBUG_RENDER_TREE to true |
Hmm, duplicate modules is suspicious. |
ah, thats the ember-template-compiler... its build with debug enabled.. |
Ah, right. Then my issue (accidental working) will be fixed by the template layering RFC |
Is there a good way to fix this in inspector? I don't know much about how embroider works. |
@rwwagner90 Should be fixed once this PR is merged and released: embroider-build/embroider/pull/1252 This issue can probably be closed |
the pr is merged and this can be closed. Although it's not released yet |
Describe the bug
When inspecting a production app built with embroider the Components tab is empty.
To Reproduce
Minimal reproduction repo here
git clone [email protected]:gilest/embroider-component-inspector-repro.git
yarn
ember s -e production
<Example />
component is visible ✅git checkout embroider
yarn
ember s -e production
Expected behavior
<Example />
component should be inspectable from the Components tab.Screenshots
Branch: master
Branch: embroider
Environment
MacOS 12.5
Chrome 105.0.5195.52
Reproduced on latest ember-cli blueprint
ember-cli@~4.6.0
ember-source@~4.6.0
Additional context
May be related to #1745 (although that issue can maybe be closed now as the reported outright crash does not occur).
The text was updated successfully, but these errors were encountered: