rete icon indicating copy to clipboard operation
rete copied to clipboard

How do I build from the repo?

Open alirezag opened this issue 4 years ago • 2 comments

npm i; npm run build gives me a wall full of errors.

> [email protected] types /Users/alireza-datance/Datance/playground/tryrete2/src/rete
> tsc src/index.ts --target es5 --declaration --outDir ./types --downlevelIteration --emitDeclarationOnly

../../node_modules/jest-diff/build/diffLines.d.ts:8:13 - error TS1005: '=' expected.

8 import type { DiffOptions } from './types';
              ~

../../node_modules/jest-diff/build/diffLines.d.ts:8:34 - error TS1005: ';' expected.

8 import type { DiffOptions } from './types';
                                   ~~~~~~~~~

../../node_modules/jest-diff/build/index.d.ts:10:13 - error TS1005: '=' expected.

10 import type { DiffOptions } from './types';
               ~

../../node_modules/jest-diff/build/index.d.ts:10:34 - error TS1005: ';' expected.

10 import type { DiffOptions } from './types';
                                    ~~~~~~~~~

../../node_modules/jest-diff/build/index.d.ts:11:1 - error TS1128: Declaration or statement expected.

11 export type { DiffOptions, DiffOptionsColor } from './types';
   ~~~~~~

../../node_modules/jest-diff/build/index.d.ts:11:13 - error TS1005: ';' expected.

11 export type { DiffOptions, DiffOptionsColor } from './types';
               ~

../../node_modules/jest-diff/build/index.d.ts:11:52 - error TS1005: ';' expected.

11 export type { DiffOptions, DiffOptionsColor } from './types';
                                                      ~~~~~~~~~

../../node_modules/jest-diff/build/printDiffs.d.ts:8:13 - error TS1005: '=' expected.

8 import type { DiffOptions, DiffOptionsNormalized } from './types';
              ~

../../node_modules/jest-diff/build/printDiffs.d.ts:8:57 - error TS1005: ';' expected.

8 import type { DiffOptions, DiffOptionsNormalized } from './types';
                                                          ~~~~~~~~~

../../node_modules/pretty-format/build/index.d.ts:7:13 - error TS1005: '=' expected.

7 import type * as PrettyFormat from './types';
              ~

../../node_modules/pretty-format/build/index.d.ts:7:18 - error TS1005: ';' expected.

7 import type * as PrettyFormat from './types';
                   ~~~~~~~~~~~~

../../node_modules/pretty-format/build/index.d.ts:7:31 - error TS1005: ';' expected.

7 import type * as PrettyFormat from './types';
                                ~~~~

../../node_modules/pretty-format/build/index.d.ts:7:36 - error TS1005: ';' expected.

7 import type * as PrettyFormat from './types';
                                     ~~~~~~~~~


Found 13 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] types: `tsc src/index.ts --target es5 --declaration --outDir ./types --downlevelIteration --emitDeclarationOnly`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] types 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!     /Users/alireza-datance/.npm/_logs/2021-01-10T19_39_32_201Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] prebuild: `npm run lint & npm test && npm run types`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] prebuild 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!     /Users/alireza-datance/.npm/_logs/2021-01-10T19_39_32_231Z-debug.log
(base) alireza-datance@Alirezas-MacBook-Pro rete % 

node v12.14.1 npm 6.13.4

alirezag avatar Jan 10 '21 19:01 alirezag

npm uninstall -g typescript npm install typescript --save-dev

May be it help..

Hatead1 avatar Jan 12 '21 08:01 Hatead1

Thanks turned out for me I had to build it with node 15

Sent from my iPhone

On Jan 12, 2021, at 17:44, Alex [email protected] wrote:

 npm uninstall -g typescript npm install typescript --save-dev

May be it help..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

alirezag avatar Jan 12 '21 13:01 alirezag