Closed
Description
I have a tsconfig.json
file similar to the following, but
{
"compilerOptions": {
"target": "ES6",
"allowJs": true,
"moduleResolution": "node",
"noEmitOnError": true,
"noEmit": true,
"baseUrl": ".",
"sourceMap": true,
"paths": {
"ember-simple-auth/mixins/application-route-mixin": [
"node_modules/ember-simple-auth/addon/mixins/application-route-mixin"
]
}
},
"include": [
"app/**/*"
]
}
and in routes/application.ts:
import Ember from 'ember';
import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin';
However, when i run ember serve
, I get the following error in the build process:
/my-app/routes/application.ts(7,35): Cannot find module 'ember-simple-auth/mixins/application-route-mixin'.
/my-app/routes/application.ts(7,35): Cannot find module 'ember-simple-auth/mixins/application-route-mixin'.
How do I get ember-cli-typescript to correctly pick up this file?
- I should note that manually running tsc works as expected and
- I have stopped
ember serve
and restarted after making the edits
Metadata
Metadata
Assignees
Labels
No labels