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

Typescript compile error #60

Closed
deniskk12 opened this issue Sep 6, 2019 · 2 comments · Fixed by feathersjs-ecosystem/generator-feathers#471
Closed

Typescript compile error #60

deniskk12 opened this issue Sep 6, 2019 · 2 comments · Fixed by feathersjs-ecosystem/generator-feathers#471

Comments

@deniskk12
Copy link

Getting next error while Typescript compile:

[ERROR] 18:56:46 ⨯ Unable to compile TypeScript: src/services/users/users.class.ts(8,47): error TS2304: Cannot find name 'Application'.

Tested on 4.2.3 version.

@dekelev
Copy link
Member

dekelev commented Sep 7, 2019

@daffl any idea?

@indrayn
Copy link

indrayn commented Sep 8, 2019

It is missing the import { Application } from '../declarations'; and also every generated by feathers g service missing import { Application } from '../../declarations'; in src/models/xxx.model.ts
And also there's a warning the first time the table created, for example:

(node:33208) Warning: a promise was created in a handler at internal/timers.js:439:21 but was not returned from it, see http://goo.gl/rRqMUw
    at Function.Promise.attempt.Promise.try (/Users/user/tutorial/Feathers/work/appcore/node_modules/bluebird/js/release/method.js:29:9)
Created users table

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

Successfully merging a pull request may close this issue.

3 participants