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

Module not found: Error: Can't resolve './-private/function-based/modifier-manager' #1848

Open
mikeelemuel opened this issue Mar 21, 2024 · 1 comment

Comments

@mikeelemuel
Copy link

Hello, I am not really sure if this is embroider issue or ember-modifier issue

My ember app runs on embroider build pipeline. I tried updating this library using this command npm install ember-modifier@latest --legacy-peer-deps. After the installation completed, I ran ember s I am receiving the error below in my terminal

error

Module not found: Error: Can't resolve './-private/function-based/modifier-manager' in '/node_modules/.embroider/rewritten-packages/ember-modifier.e61587e8'


Stack Trace and Error Report: /var/folders/wy/1zmr5wd13s75k401p881kdq00000gn/T/error.dump.f7ad9caa0c817516044d3bf9754d96bb.log

These are some of the packages that I have that might help to know what caused the issue

"ember-cli": "~3.28.0",
"@ember/render-modifiers": "^2.1.0",
"@embroider/compat": "3.1.0",
"@embroider/core": "3.1.0",
"@embroider/webpack": "3.1.0",
"ember-modifier": "^4.1.0",
@Windvis
Copy link
Collaborator

Windvis commented Mar 28, 2024

@mikeelemuel Could you check if you have multiple major versions of ember-modifier installed?

npm ls ember-modifier or with something like ember-dependency-lint.

In classic builds, multiple versions could cause strange issues like this. I'm not sure what the situation is in Embroider, but worth checking.

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

2 participants