tracked-tools / ember-could-get-used-to-this

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught Error: Could not find module `@ember/helper` imported from `ember-could-get-used-to-this/-private/functions`

chrism opened this issue · comments

Hi,

After installing via

ember install ember-could-get-used-to-this

the site builds but I’m getting this error in the console.

loader.js:247 Uncaught Error: Could not find module `@ember/helper` imported from `ember-could-get-used-to-this/-private/functions`
    at missingModule (loader.js:247)
    at findModule (loader.js:258)
    at Module.findDeps (loader.js:168)
    at findModule (loader.js:262)
    at Module.findDeps (loader.js:168)
    at findModule (loader.js:262)
    at Module.findDeps (loader.js:168)
    at findModule (loader.js:262)
    at requireModule (loader.js:24)
    at r (loader.js:176)

This is before adding any new code.

Ember CLI : 3.20
Ember : 3.20.3

Removing the addon and everything is working as expected again.

Am I missing something? Thanks.

This addon only works on the latest beta currently, it's based on brand new features

Ah sorry I didn’t realise that. Thanks.

@NullVoxPopuli you also need the latest ember-cli-babel, to get the latest modules transform

I am using the latest - 7.23.0

@NullVoxPopuli is it the error mentioned above specifically? Because @ember/helper should be transformed to Ember._setHelperManager, so you would get something like "Ember._setHelperManager is not a function" if the transform was working

it is the same, yes. :D

It turns out the issue was my lockfile. somehow I didn't get a warning about mismatched deps or something.
nuking the lockfile and reinstalling from scratch solved the issue.