Closed rick-software closed 5 years ago
MacOS Mojave $node -v v10.15.0 $ npm -v 6.4.1
Hi Rick,
Thank you for reporting this issue!
I got the same problem when creating a new project. It looks like it is related to a new version of TypeORM (v0.2.15
) published 14 hours ago. I'm still investigating to understand what happens.
Running npm install typeorm@0.2.14
fixes the problem.
...but npm start brings the ui up - not sure about those errors
The TypeScript compiler can compile files even if they are type errors sometimes. That's why it's working with npm start
which just executes the JS compiled files.
The new version of TypeORM requires TypeScript 3, that's why the command was failing as the CLI installs TypeScript 2.9.2
.
I published a new version of the CLI installing TypeScript 3 by default (the framework supports both TS2 and TS3). This should fix the issue.
# To upgrade
npm install -g @foal/cli
Can you confirm that it's working properly?
It solves the problem for me ty.
npm run develop
node_modules/typeorm/connection/Connection.d.ts:40:28 - error TS1039: Initializers are not allowed in ambient contexts.
40 readonly isConnected = false;