Open Rdeisenroth opened 4 months ago
As a temporary workaround, i added a file called postinstall.ts
to src/scripts
:
import * as fs from 'fs';
import * as path from 'path';
// See https://github.com/graphql-editor/graphql-zeus/issues/402
const filePath = path.resolve('node_modules/config-maker/lib/utils/AwfulAutoCompletePrompt.js');
const fileContent = fs.readFileSync(filePath, 'utf8');
const fixedContent = fileContent.replace(
"import { takeWhile } from 'rxjs/operators';",
"import { takeWhile } from 'rxjs/operators/index.js';"
);
fs.writeFileSync(filePath, fixedContent, 'utf8');
console.log('Fixed rxjs import in AwfulAutoCompletePrompt.js');
and edited my package.json
like so:
{
"scripts": {
"postinstall": "ts-node --require tsconfig-paths/register --require reflect-metadata src/scripts/postinstall.ts",
}
}
Hi, on all of my machines, when i run is a placeholder for the actual pwd):
zeus src/backend/prisma/generated/schema.graphql src/backend/prisma/generated/zeus --typescript --apollo
, i get the following error (it can be fixed, if i manually edit
AwfulAutoCompletePrompt.js
, line 11:However the error always reappears when i install another package with
yarn add
.