Skip to content

TypeError: Cannot read property 'flags' of undefined #2

@finnyfound

Description

@finnyfound

I have cloned the repo and ran this command
yarn && yarn build

at the end of yarn build this error occurs.

PS D:\xampp\htdocs\joystream-api-examples> yarn
yarn install v1.22.0
info No lockfile found.
[1/4] Resolving packages...
warning @joystream/types > @types/vfile@4.0.0: This is a stub types definition. vfile provides its own type definitions, so you do not need this installed.
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 38.71s.
PS D:\xampp\htdocs\joystream-api-examples> yarn build
yarn run v1.22.0
$ tsc --build tsconfig.json
D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:10245
        return !!(module.flags & 1024);
                         ^

TypeError: Cannot read property 'flags' of undefined
    at Object.isGlobalScopeAugmentation (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:10245:26)
    at D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:84779:96
    at Object.some (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:587:25)
    at containsGlobalScopeAugmentation (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:84779:23)
    at isFileAffectingGlobalScope (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:84782:20)
    at Object.create (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:84603:139)
    at createBuilderProgramState (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:84849:37)
    at Object.createBuilderProgram (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:85352:21)
    at createEmitAndSemanticDiagnosticsBuilderProgram (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:85586:19)
    at Object.host.createProgram (D:\xampp\htdocs\joystream-api-examples\node_modules\typescript\lib\tsc.js:89130:20)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions