Open nick4fake opened 1 year ago
Ok It seems like it might be related to Windows usage. I've created a small bat wrapper around node:
@echo off
(
echo %*
) > C:\data\test.txt
node %*
It gives me this:
PATH_TO_DIR\.yarn\releases\yarn-3.6.0.cjs node --input-type module --loader ts-node/esm -e "function printConfig(config) {
So it seems like multiline eval is somehow not supported with windows node interpreter?
I am using IDEA 2023.2 EAP, stable version also doesn't work.
There seems to be an issue with evaling config export with PNP due to loader interference:
I am using Yarn PNP + ESM. I think there might be an issue with file import here: https://github.com/JetBrains/js-graphql-intellij-plugin/blob/master/src/main/com/intellij/lang/jsgraphql/javascript/config/GraphQLJavaScriptConfigLoader.kt#L169