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

[3.0.0-beta.3] Cannot read properties of undefined (reading 'extend') at link-to.js #267

Closed
johanrd opened this issue Apr 5, 2022 · 2 comments

Comments

@johanrd
Copy link
Contributor

johanrd commented Apr 5, 2022

When running an app with ember-mobile-menu 3.0.0-beta.3 from embroider 1.5.0 and ember-source 4.3.0, I get the following error:

TypeError: Cannot read properties of undefined (reading 'extend') at 
eval (webpack://webapp/./node_modules/ember-mobile-menu/components/mobile-menu/link-to.js?:15:143)

Maybe be related to #229? or some build / package.json entanglement happening with the recent migration to monorepo? (I see there is a package.json both in root and in /addon). Please tell me if you are not able to reproduce – I'll try to create a minimal reproduction.

@nickschot
Copy link
Owner

nickschot commented Apr 5, 2022

I think it may be this emberjs/ember-legacy-built-in-components#9 (comment) . Do you have older embroider deps in your lock file? You could try to add a resolution/override for them.

edit: verified to work correctly in a clean ember 4 + embroider optimized app

@johanrd
Copy link
Contributor Author

johanrd commented Apr 6, 2022

OK, thanks, yes. Was fixed by deleting and recreating my lock file. Thanks!

@johanrd johanrd closed this as completed Apr 6, 2022
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