You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was first getting this error due the @szhsin/react-menu library. He has added some exports to resolve it. But that just unmasked the error for MUI components.
Is there any way around this other than pestering library maintainers to export more types?
Is is a specifiic error message
> reli.ui@0.0.0 test-mutate
> npx stryker run --ignoreStatic
07:32:43 (2191349) INFO ProjectReader Found 61 of 736 file(s) to be mutated.
07:32:43 (2191349) INFO Instrumenter Instrumented 61 source file(s) with 2017 mutant(s)
07:32:44 (2191349) INFO ConcurrencyTokenProvider Creating 16 checker process(es) and 15 test runner process(es).
07:32:56 (2191349) ERROR Stryker Unexpected error occurred while running Stryker StrykerError: Error: An error occurred during initialization of the "typescript" checker. Inner error: Error: Typescript error(s) found in dry run compilation: src/styles/components/StyledTree.tsx(4,7): error TS4023: Exported variable 'StyledTree' has or is using name 'DataGridProComponent' from external module "/home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@mui/x-data-grid-pro/DataGridPro/DataGridPro" but cannot be named.
Error: Typescript error(s) found in dry run compilation: src/styles/components/StyledTree.tsx(4,7): error TS4023: Exported variable 'StyledTree' has or is using name 'DataGridProComponent' from external module "/home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@mui/x-data-grid-pro/DataGridPro/DataGridPro" but cannot be named.
at TypescriptChecker.init (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/typescript-checker/dist/src/typescript-checker.js:42:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async CheckerWorker.init (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/core/dist/src/checker/checker-worker.js:11:17)
at async ChildProcessProxyWorker.handleCall (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/core/dist/src/child-proxy/child-process-proxy-worker.js:82:28)
Error: An error occurred during initialization of the "typescript" checker. Inner error: Error: Typescript error(s) found in dry run compilation: src/styles/components/StyledTree.tsx(4,7): error TS4023: Exported variable 'StyledTree' has or is using name 'DataGridProComponent' from external module "/home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@mui/x-data-grid-pro/DataGridPro/DataGridPro" but cannot be named.
Error: Typescript error(s) found in dry run compilation: src/styles/components/StyledTree.tsx(4,7): error TS4023: Exported variable 'StyledTree' has or is using name 'DataGridProComponent' from external module "/home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@mui/x-data-grid-pro/DataGridPro/DataGridPro" but cannot be named.
at TypescriptChecker.init (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/typescript-checker/dist/src/typescript-checker.js:42:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async CheckerWorker.init (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/core/dist/src/checker/checker-worker.js:11:17)
at async ChildProcessProxyWorker.handleCall (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/core/dist/src/child-proxy/child-process-proxy-worker.js:82:28)
at CheckerWorker.init (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/core/dist/src/checker/checker-worker.js:14:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ChildProcessProxyWorker.handleCall (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/core/dist/src/child-proxy/child-process-proxy-worker.js:82:28)
at ChildProcess.<anonymous> (file:///home/bkaplan/dev.hbk/reliasoft/reli.ui/node_modules/@stryker-mutator/core/dist/src/child-proxy/child-process-proxy.js:149:68)
at ChildProcess.emit (node:events:513:28)
at emit (node:internal/child_process:937:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
innerError: undefined
}
07:32:56 (2191349) INFO Stryker This might be a known problem with a solution documented in our troubleshooting guide.
07:32:56 (2191349) INFO Stryker You can find it at https://stryker-mutator.io/docs/stryker-js/troubleshooting/
07:32:56 (2191349) INFO Stryker Still having trouble figuring out what went wrong? Try `npx stryker run --fileLogLevel trace --logLevel debug` to get some more info.
Process finished with exit code 1
Question
I was first getting this error due the @szhsin/react-menu library. He has added some exports to resolve it. But that just unmasked the error for MUI components.
Is there any way around this other than pestering library maintainers to export more types?
Is is a specifiic error message
Stryker environment
stryker.conf.json:
The text was updated successfully, but these errors were encountered: