You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
I've try to follow step-by-step the "Get started" documentation (here). I have many issues, maybe it's because of the DB difference (between MongoDB/Mongoose in the tutorial and MySQL8/Sequelize in my case). This is one of the multiple TS issues i have, because I've alrealdy tried some times :
src/sequelize.ts here who needs an as any
src/index.ts who needs an as any
SQL syntax with JSONB in final
I want to understand in order to have a stable build...that can works... so one issue at a time.
Steps to reproduce
First, start the MySQL/PHPMYADMIN container with docker-compose. This is my docker-compose.yml :
Then, follow the tutorial to the ("Generate service" section). So, i have the users, roles & teams services look like the tutorial ones, except for the Sequelize part.
Now i want to start my app to test if it works... so feathers-plus g all and npm start
Expected behavior
Just want to start the Feathers app for the moment...
Actual behavior
Throw an error after npm start command :
benoit@PC-SD-01:~/projects/test_fia$ npm start
> test-fia@0.0.0 start /home/benoit/projects/test_fia
> ts-node --files src/
/home/benoit/projects/test_fia/node_modules/ts-node/src/index.ts:261
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/sequelize.ts(63,39): error TS2345: Argument of type'any[]' is not assignable to parameter of type'[any?]'.
Types of property 'length' are incompatible.
Type 'number' is not assignable to type'0 | 1'.
at createTSError (/home/benoit/projects/test_fia/node_modules/ts-node/src/index.ts:261:12)
at getOutput (/home/benoit/projects/test_fia/node_modules/ts-node/src/index.ts:367:40)
at Object.compile (/home/benoit/projects/test_fia/node_modules/ts-node/src/index.ts:558:11)
at Module.m._compile (/home/benoit/projects/test_fia/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] (/home/benoit/projects/test_fia/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)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/benoit/projects/test_fia/src/app.ts:24:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module.m._compile (/home/benoit/projects/test_fia/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/benoit/projects/test_fia/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)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/benoit/projects/test_fia/src/index.ts:6:1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test-fia@0.0.0 start: `ts-node --files src/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test-fia@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/benoit/.npm/_logs/2019-01-30T09_09_21_689Z-debug.log
First, #27 should have been added to this issue rather than a new one created. So I am closing #27 .
Second, its better to post generator issues to feathers-plus/generator-feathers-plus so we don't lose sight of them. So I am opening an issue there which references this one, while closing this one here.
Hello,
I've try to follow step-by-step the "Get started" documentation (here). I have many issues, maybe it's because of the DB difference (between MongoDB/Mongoose in the tutorial and MySQL8/Sequelize in my case).
This is one of the multiple TS issues i have, because I've alrealdy tried some times :
as any
as any
I want to understand in order to have a stable build...that can works... so one issue at a time.
Steps to reproduce
Then, follow the tutorial to the ("Generate service" section). So, i have the users, roles & teams services look like the tutorial ones, except for the Sequelize part.
Now i want to start my app to test if it works... so
feathers-plus g all
andnpm start
Expected behavior
Just want to start the Feathers app for the moment...
Actual behavior
Throw an error after npm start command :
System configuration
Module versions :
Node version: 10.15.0
NPM Version: 6.4.1
Feathers-Plus Version: 0.7.75
MySQL Version: 8.0.3 (as you can see in docker-compose.yml)
Operating System: Ubuntu 18.04.1 LTS
GIST Public link
(https://gist.github.com/GhuronZhan/562f7c006c38812008d0e770de43fec9)
The text was updated successfully, but these errors were encountered: