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

Error: Could not find module '@ember/string' when using ember-tooltips with Ember 6.1.0 #461

Open
amiarSlimane opened this issue Jan 6, 2025 · 0 comments

Comments

@amiarSlimane
Copy link

Version

3.6.0

Test Case

i am using a fresh ember app with "ember-source": "~6.1.0", "@ember/string": "^4.0.0"

Steps to reproduce

Create a new Ember application with ember-source version 6.1.0.

ember new my-app
cd my-app

Add the ember-tooltips package.
ember install ember-tooltips

Use EmberTooltip in the application.

<span>
  Info
<EmberTooltip @text="Here is more info!" />
</span>

Observe the error in the console.

Expected Behavior

The application should load without any errors, and the ember-tooltips package should function as expected, with no missing module errors.

Actual Behavior

The application fails to load, and the following error is displayed in the console:

Uncaught Error: Could not find module `@ember/string` imported from `ember-tooltips/components/ember-tooltip-base`
    at missingModule (loader.js:247:1)
    at findModule (loader.js:258:1)
    at Module.findDeps (loader.js:168:1)
    at findModule (loader.js:262:1)
    at Module.findDeps (loader.js:168:1)
    at findModule (loader.js:262:1)
    at Module.findDeps (loader.js:168:1)
    at findModule (loader.js:262:1)
    at requireModule (loader.js:24:1)

Workaround

downgrading ember/string to 3.0.1 resolves the error temporarily. However, a more permanent fix is needed for compatibility with Ember 6.x.

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

No branches or pull requests

1 participant