Skip to content

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

@amiarSlimane

Description

@amiarSlimane

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions