Closed tmm closed 6 months ago
I am getting exactly the same error.
"playroom": "^0.27.0",
"typescript": "^4.4.2",
"webpack": "^4.46.0",
Node version is: v12.18.2
Would still be great to fix this, but thought of a temporary fix.
Since Playroom doesn't fully parse tsconfig.json
(#241), you can set up tsconfig.json
so it extends another configuration (tsconfig.base.json
) that has moduleResolution
set. This way moduleResolution
is never picked up by Playroom, but editors and other tools are still able to read it.
tsconfig.json
{
"extends": "./tsconfig.base.json"
}
tsconfig.base.json
{
"compilerOptions": {
...
"moduleResolution": "Node",
},
"include": ["./src/"],
"exclude": ["node_modules"]
}
I'm also having this problem with Playroom + TS. It complains about having moduleResolutions
set to "node"
.
+1
When
moduleResolution
is set in atsconfig.json
file, the following error below pops up. If you removemoduleResolution
, then types are generated correctly and no error is thrown.It would be great if you could provide a custom
tsConfigPath
or options to be spread into the first argument ofwithCompilerOptions
.