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

Inspector doesn't detect the app with ember-source v6.1 #2612

Open
mkszepp opened this issue Jan 10, 2025 · 1 comment
Open

Inspector doesn't detect the app with ember-source v6.1 #2612

mkszepp opened this issue Jan 10, 2025 · 1 comment
Labels

Comments

@mkszepp
Copy link

mkszepp commented Jan 10, 2025

Describe the bug
After updating my app to v6.1 (and also with new ember app), the inspector isn't working anymore.
The inspector doesn't detect the app.
With 6.0 it works without any issues

To Reproduce
ember new new-app --embroider --pnpm --typescript

Expected behavior
Inspector should find the app

Screenshots
grafik

Environment
Ember cli: 6.1
Ember version: 6.1
Embroider: latest
Browser: Chrome / Firefox

@mkszepp mkszepp added the bug label Jan 10, 2025
@mkszepp mkszepp changed the title Inspector doesn't work with ember-source v6.1 Inspector doesn't detect the app with ember-source v6.1 Jan 10, 2025
@patricklx
Copy link
Collaborator

since ember-source is now a v2 addon, no AMD modules are beeing created. So inspector cannot detect them. There is only a AMD compat mode for classic builds without embroider.
you have to include this code to make it work:

import Ember from 'ember';
import * as runtime from '@glimmer/runtime';
import * as tracking from '@glimmer/tracking';
import * as validator from '@glimmer/validator';
import { RSVP } from '@ember/-internals/runtime';

import config from './config/environment';


window.define('@glimmer/tracking', () => tracking);
window.define('@glimmer/runtime', () => runtime);
window.define('@glimmer/validator', () => validator);
window.define('rsvp', () => RSVP);
window.define('ember', () => ({ default: Ember }));
window.define('<my-app>/config/environment', () => ({
  default: config,
}));

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

No branches or pull requests

2 participants