(First please check that this issue is not already solved as described
here)
[ ] Tell us what broke. The more detailed the better.
Just created a simple starter app, and running in dev mode or to compile both fail.
mkdir test
cd test
feathers-plus generate config
feathers-plus generate app
feathers-plus generate all
npm run dev
TSError: ⨯ Unable to compile TypeScript:
src/app.hooks.ts(15,5): error TS2741: Property 'finally' is missing in type '{ before: { all: Hook[]; find: never[]; get: never[]; create: never[]; update: never[]; patch: never[]; remove: never[]; }; after: { all: Hook[]; find: never[]; get: never[]; create: never[]; update: never[]; patch: never[]; remove: never[]; }; error: { ...; }; }' but required in type 'HooksObject'.
at createTSError (/Users/patrickscanlon/Documents/patrick-code-samples/fts/node_modules/ts-node/src/index.ts:261:12)
at getOutput (/Users/patrickscanlon/Documents/patrick-code-samples/fts/node_modules/ts-node/src/index.ts:367:40)
at Object.compile (/Users/patrickscanlon/Documents/patrick-code-samples/fts/node_modules/ts-node/src/index.ts:558:11)
at Module.m._compile (/Users/patrickscanlon/Documents/patrick-code-samples/fts/node_modules/ts-node/src/index.ts:439:43)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .ts] (/Users/patrickscanlon/Documents/patrick-code-samples/fts/node_modules/ts-node/src/index.ts:442:12)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
- [ ] If you can, please create a simple example that reproduces the issue and link to a gist, jsbin, repo, etc.
Here is my feathers-gen-specs.json
{
"options": {
"ver": "1.0.0",
"inspectConflicts": false,
"semicolons": true,
"freeze": [],
"ts": true
},
"app": {
"environmentsAllowingSeedData": "",
"seedData": false,
"name": "fts",
"description": "Project fts",
"src": "src",
"packager": "npm@>= 3.0.0",
"providers": [
"rest",
"socketio"
]
},
"services": {},
"hooks": {}
}
### Expected behavior
Tell us what should happen
it should work
### Actual behavior
Tell us what happens instead
### System configuration
Tell us about the applicable parts of your setup.
**Module versions** (especially the part that's not working):
**NodeJS version**:
8
**Operating System**:
osx
**Browser Version**:
**React Native Version**:
**Module Loader**:
Steps to reproduce
(First please check that this issue is not already solved as described here)