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

Uncaught Error: Could not find module ember-views/lib/compat/attrs #46

Open
alejomo opened this issue Jan 31, 2019 · 5 comments
Open

Uncaught Error: Could not find module ember-views/lib/compat/attrs #46

alejomo opened this issue Jan 31, 2019 · 5 comments

Comments

@alejomo
Copy link

alejomo commented Jan 31, 2019

Not sure if this is related to #45 but a fresh install with ember 3.7.2, i'm getting this error:
Uncaught Error: Could not find module ember-views/lib/compat/attrs

@NateDawg90
Copy link

I'm getting the same issue. Just upgraded to 3.8. Anyone have a solution for this error?

@pswai
Copy link
Contributor

pswai commented Mar 28, 2019 via email

@NateDawg90
Copy link

NateDawg90 commented Sep 9, 2021

Hey, update on this issue. I experienced this bug once again, only this time it was specifically after upgrading ember-source from 3.8.0 to 3.12.0. My ember-cli is 3.14.

Maybe there is a similar fix to your previous solution @pswai ?

EDIT: Actually, it still breaks when moving ember-source from 3.5 to 3.6. It's essentially the same issue I was having 2 years ago. Which is why our app is stuck at source code version 3.5 :/

@pswai
Copy link
Contributor

pswai commented Sep 9, 2021

@NateDawg90 Let me simulate an upgrade from 3.5 to 3.6 here. Instead of failing probably I should change it to retry with older paths. However it still feels weird to me since the module should have relocated in 3.6 🤔

If you don't mind can you share your upgrade steps with me?

@pswai
Copy link
Contributor

pswai commented Sep 9, 2021

@NateDawg90 I did an upgrade from 3.4 to 3.6 and it was working fine, however since i dont have any project with that version it is fresh. Here's what I did:

  1. Generate new Ember app with ember-cli 3.4.4 on Node 10 (Node 16 did not work).
  2. Install ember-cli-react-fork via npm.
  3. Generate blueprint with ember g ember-cli-react.
  4. Add a React component and verify it works.
  5. Now prepare to upgrade. Run ember-cli-update --run-codemods (No change since the repo is fresh).
  6. Run ember-cli-update --to 3.6.
  7. Run npm i since ember-cli-update does not install dependencies.
  8. Run ember s again. In my case it still works.

In your case, I have a feeling that ember-source 3.6 was loaded but somehow it is reporting version 3.5. Can you try logging Ember.VERSION in your app to check?

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

3 participants