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

Strange Bug _ember_modifier__WEBPACK_IMPORTED_MODULE_1__.setModifierManager is not a function #681

Open
luxzeitlos opened this issue Feb 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@luxzeitlos
Copy link

This is a very strange bug, and I'm not really sure where this should belong.
But we have a reproduction.

It occurs if:

  • @ember/modifier'; is imported in routes/application.js
    • import { on } from '@ember/modifier';
  • ember-autofocus-modifier/modifiers/autofocus'; is indirectly imported routes/application.js
    • import import Navigation from 'my-app/components/navigation'; is present in routes/application.js
    • import autofocus from 'ember-autofocus-modifier/modifiers/autofocus'; in components/navigation.js
  • "ember-modifier": "^4.0.0", is present in package.json, no import necessary

Then the app fails to boot with:

Uncaught TypeError: _ember_modifier__WEBPACK_IMPORTED_MODULE_1__.setModifierManager is not a function

Relevant discussion on Discord

@SergeAstapov SergeAstapov added the bug Something isn't working label Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants