embroider: Embroider safe tests hang for all addons

I am not sure if this is due to something like ember-cli-addon-docs or what is causing all my addons to hang when I try to add the embroider ember-try scenarios, but I always get Global error: Uncaught ReferenceError: Ember is not defined.

Here are a couple builds:

https://github.com/shipshapecode/ember-math-helpers/pull/509 https://github.com/shipshapecode/ember-shepherd/pull/779

@ef4 any ideas here?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (6 by maintainers)

Most upvoted comments

Huh, that worked! I removed ember-auto-import from the dev dependencies as I was not aware it was being used by something in the default blueprint. And since the regular tests worked, I thought that was all good. Weird that this would only fail in embroider then, but in in a regular build 🤔 but thanks a lot for the help!

@rwwagner90 - The last link you shared was not anything to do with Ember is not defined, the log you linked to shows:

not ok 1 Chrome 91.0 - [undefined ms] - Global error: Uncaught Error: an unsupported module was defined, expected `define(id, deps, module)` instead got: `1` arguments to define` at http://localhost:7357/assets/vendor.js, line 67

Which is due to a double transpilation of qunit. You need to tell the system to skip babeling qunit.

See https://github.com/shipshapecode/ember-meta/pull/28/files#r646644689 for details.