Skip to content

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

Open

Description

@alejomo

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

Activity

  1. NateDawg90 commented on Mar 28, 2019

    @NateDawg90

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

  2. pswai commented on Mar 28, 2019

    @pswai
    Contributor
  3. NateDawg90 commented on Sep 9, 2021

    @NateDawg90

    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 :/

  4. pswai commented on Sep 9, 2021

    @pswai
    Contributor

    @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?

  5. pswai commented on Sep 9, 2021

    @pswai
    Contributor

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions