question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to run tests: unsupported module was defined

See original GitHub issue

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 64

https://github.com/simplabs/qunit-dom/pull/970 is trying to update the embroider dependency in qunit-dom, but it fails with the above error and ember test ultimately timing out.

The stack trace of the error is pointing to https://github.com/emberjs/ember-test-helpers/pull/958 being the problem. It looks like the es6-promise import there is not working correctly.

Note that this only happens in combination with the new ember-qunit v5 setup. With ember-qunit v4 this is not an issue because the test-helpers PR above was only added in v2.x, which is not used by ember-qunit v4.

/cc @rwjblue @ef4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ctjhoacommented, Apr 13, 2021

In @mansona case, there was a missing explicit dependency to ember-auto-import. https://github.com/mansona/ember-cli-notifications/pull/310

1reaction
ef4commented, Apr 4, 2021

This is due to https://github.com/embroider-build/embroider/issues/731#issuecomment-808788950

You can use embroider’s skipBabel option to workaround.

skipBabel: [
  {
    package: 'qunit',
  },
],
Read more comments on GitHub >

github_iconTop Results From Across the Web

Must use import to load ES Module / require() of ES ... - GitHub
I have suddenly started getting the following error: $ npm test ... import to load ES Module / require() of ES modules is...
Read more >
Android studio Error "Unsupported Modules Detected
Close Android Studio · Open Command Prompt as Administrator · Run a chkdsk /f on the drive your app is stored · Delete...
Read more >
cDAQ Module Shows Up as Unsupported Module in NI MAX - NI
When selecting the module in NI MAX, I get Internal Software Error occurred in MIO software. Please contact National Instruments Support.
Read more >
Unsupported attribute when trying to create module test for ...
Created a dummy module that only defines an s3 bucket. Error: Unsupported attribute │ │ on tests/defaults/test_defaults.tf line 17: │ (source ...
Read more >
4.0.1 creates an unsupported module warning on 9.4.x - Drupal
1. Downgrade ctools to 3.11 by explicitly declaring a dependency on it in your own project composer.json (if you're using a composer-based ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found