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.

[Bug] Could not find module `ember-testing` imported from `@ember/test/index` on ember 3.27.0

See original GitHub issue

🐞 Describe the Bug

Updating ember app to v3.27.0 causing an error: Could not find module ember-testing imported from @ember/test/index

🔬 Minimal Reproduction

Create an app with latest ember-cli. Update ember-source to v3.27.0 Build the app with npm run build. Go to dist folder. Serve the folder. In my case, I’m using python -m "http.server" You’ll see the error message as: Uncaught Error: Could not find module ember-testing imported from @ember/test/index

I’m seeing the same error with my production app.

Here is the sample repo.

😕 Actual Behavior

App successfully built but when I run and reach to main route I’m seeing this error and app doesn’t work.

🤔 Expected Behavior

App should be working.

🌍 Environment

  • Ember: - 3.26.1
  • Node.js/npm: - v14.16.1/7.6.3
  • OS: - Windows 10
  • Browser: - Microsoft Edge 90.0.818.51 x64

➕ Additional Context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pzuraqcommented, May 14, 2021

This should be fixed in 3.27.1, let us know if there are any issues!

1reaction
runspiredcommented, May 11, 2021

cc @Turbo87 I’m fairly sure this is what you hit in crates

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting "Could not find module `ember-resolver`" error
However, when I deploy the app I get the following: Error: Could not find module ember-resolver imported from bnc/app.
Read more >
How to debug "Could not find module" in Ember.js acceptance ...
I tried creating a new Ember project with one test route and an acceptance test, all generated with CLI, and the import works...
Read more >
ember-qunit | Yarn - Package Manager
ember -qunit simplifies testing of Ember applications with QUnit by providing QUnit-specific wrappers around the helpers contained in ember-test-helpers.
Read more >
Learn TDD in Ember
TDD helps you develop a robust test suite to catch bugs, as well as guiding you to more modular, flexible code. To see...
Read more >
The Ember.js testing guide, I made for myself - Medium
import { moduleFor, test } from 'ember-qunit'; ... Please note ember-cli does not generate unit tests for components and helpers by default (when...
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