Error when trying to run tests: unsupported module was defined
See original GitHub issueUncaught 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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In @mansona case, there was a missing explicit dependency to
ember-auto-import
. https://github.com/mansona/ember-cli-notifications/pull/310This is due to https://github.com/embroider-build/embroider/issues/731#issuecomment-808788950
You can use embroider’s
skipBabel
option to workaround.