Skip to content

Could not find module when running host application in ember engines setup #314

@allenz-crypto

Description

@allenz-crypto

Having installed ember-cli-typescript in both app and engine, and running the app, it cannot find the ts module defined in the engine.

It works when running from the engine dummy app.

Steps to reproduce: https://github.com/allenylzhou/yarn-workspaces-ember-engine

yarn version 1.6 / node version 8.11.1
OR
yarn version 1.7 / node version 8.12.0

loader.js:247 Uncaught Error: Could not find module `my-new-engine/utils/random` imported from `my-new-engine/components/some-input`
    at missingModule (loader.js:247)
    at findModule (loader.js:258)
    at Module.findDeps (loader.js:168)
    at findModule (loader.js:262)
    at requireModule (loader.js:24)
    at Class._extractDefaultExport (index.js:422)
    at Class.resolveOther (index.js:101)
    at Class.resolve (index.js:163)
    at _resolve (container.js:820)
    at Registry.resolve (container.js:570)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions